utility.hh File Reference

#include "except.hh"
#include "rngs.h"

Go to the source code of this file.

Namespaces

namespace  RVL

Classes

struct  RVL::ScalarFieldTraits< Scalar >
 A traits class to extend the capabilities of numeric_limits without duplicating such capabilities. More...
struct  RVL::ScalarFieldTraits< bool >
struct  RVL::ScalarFieldTraits< int >
struct  RVL::ScalarFieldTraits< long >
struct  RVL::ScalarFieldTraits< unsigned int >
struct  RVL::ScalarFieldTraits< unsigned long >
struct  RVL::ScalarFieldTraits< float >
struct  RVL::ScalarFieldTraits< double >
struct  RVL::ScalarFieldTraits< std::complex< T > >
class  RVL::Writeable
 Mixin interface to mandate write-to-ostream method, and derive write-to-exception method from it. More...
class  RVL::Oracle< T >
 Generic oracle interface. More...
class  RVL::Factory< T >
 Standard factory interface - really a policy. More...

Functions

template<>
int numeric_precision< float > ()
template<>
int numeric_precision< double > ()
template<typename Scalar>
void RVL::testRealOnly ()
 Some applications do not make sense unless the absolute value type (signed, in the current implementation) is the same as the scalar type.
template<class real>
int RVL::ProtectedDivision (real a, real b, real &quot, real tol=ScalarFieldTraits< real >::AbsZero())
 Calculate $quot = a/b$ in a careful manner.


Function Documentation

template<>
int numeric_precision< float > (  ) 

template<>
int numeric_precision< double > (  ) 


Generated on 5 Jan 2017 for RVL by  doxygen 1.4.7