Simbody  3.5
SimTK::NTraits< complex< R > > Class Template Reference

Partial specialization for complex numbers – underlying real R is still a template parameter. More...

+ Inheritance diagram for SimTK::NTraits< complex< R > >:

Classes

struct  Result
 
struct  Substitute
 

Public Types

enum  {
  NRows = 1,
  NCols = 1,
  RowSpacing = 1,
  ColSpacing = 1,
  NPackedElements = 1,
  NActualElements = 1,
  NActualScalars = 1,
  ImagOffset = 1,
  RealStrideFactor = 2,
  ArgDepth = SCALAR_DEPTH,
  IsScalar = 1,
  IsULessScalar = 1,
  IsNumber = 1,
  IsStdNumber = 1,
  IsPrecision = 0,
  SignInterpretation = 1
}
 
typedef C T
 
typedef negator< C > TNeg
 
typedef C TWithoutNegator
 
typedef R TReal
 
typedef R TImag
 
typedef C TComplex
 
typedef conjugate< R > THerm
 
typedef C TPosTrans
 
typedef R TSqHermT
 
typedef R TSqTHerm
 
typedef C TElement
 
typedef C TRow
 
typedef C TCol
 
typedef C TSqrt
 
typedef R TAbs
 
typedef C TStandard
 
typedef C TInvert
 
typedef C TNormalize
 
typedef C Scalar
 
typedef C ULessScalar
 
typedef C Number
 
typedef C StdNumber
 
typedef R Precision
 
typedef R ScalarNormSq
 

Static Public Member Functions

static const TgetData (const T &t)
 
static TupdData (T &t)
 
static const R & real (const T &t)
 
static R & real (T &t)
 
static const R & imag (const T &t)
 
static R & imag (T &t)
 
static const TNegnegate (const T &t)
 
static TNegnegate (T &t)
 
static const THermtranspose (const T &t)
 
static THermtranspose (T &t)
 
static const TPosTranspositionalTranspose (const T &t)
 
static TPosTranspositionalTranspose (T &t)
 
static const TWithoutNegatorcastAwayNegatorIfAny (const T &t)
 
static TWithoutNegatorupdCastAwayNegatorIfAny (T &t)
 
static ScalarNormSq scalarNormSqr (const T &t)
 
static TSqrt sqrt (const T &t)
 
static TAbs abs (const T &t)
 
static const TStandardstandardize (const T &t)
 
static TNormalize normalize (const T &t)
 
static TInvert invert (const T &t)
 
static const TgetNaN ()
 
static const TgetInfinity ()
 
static const TgetI ()
 
static bool isFinite (const T &t)
 
static bool isNaN (const T &t)
 
static bool isInf (const T &t)
 
static double getDefaultTolerance ()
 
template<class R2 >
static bool isNumericallyEqual (const T &a, const complex< R2 > &b)
 
template<class R2 >
static bool isNumericallyEqual (const T &a, const complex< R2 > &b, double tol)
 
template<class R2 >
static bool isNumericallyEqual (const T &a, const conjugate< R2 > &b)
 
template<class R2 >
static bool isNumericallyEqual (const T &a, const conjugate< R2 > &b, double tol)
 
static bool isNumericallyEqual (const T &a, const float &b)
 
static bool isNumericallyEqual (const T &a, const float &b, double tol)
 
static bool isNumericallyEqual (const T &a, const double &b)
 
static bool isNumericallyEqual (const T &a, const double &b, double tol)
 
static bool isNumericallyEqual (const T &a, const long double &b)
 
static bool isNumericallyEqual (const T &a, const long double &b, double tol)
 
static bool isNumericallyEqual (const T &a, int b)
 
static bool isNumericallyEqual (const T &a, int b, double tol)
 
static const TgetZero ()
 
static const TgetOne ()
 
static const TgetMinusOne ()
 
static const TgetTwo ()
 
static const TgetThree ()
 
static const TgetOneHalf ()
 
static const TgetOneThird ()
 
static const TgetOneFourth ()
 
static const TgetOneFifth ()
 
static const TgetOneSixth ()
 
static const TgetOneSeventh ()
 
static const TgetOneEighth ()
 
static const TgetOneNinth ()
 
static const TgetPi ()
 
static const TgetOneOverPi ()
 
static const TgetE ()
 
static const TgetLog2E ()
 
static const TgetLog10E ()
 
static const TgetSqrt2 ()
 
static const TgetOneOverSqrt2 ()
 
static const TgetSqrt3 ()
 
static const TgetOneOverSqrt3 ()
 
static const TgetCubeRoot2 ()
 
static const TgetCubeRoot3 ()
 
static const TgetLn2 ()
 
static const TgetLn10 ()
 

Detailed Description

template<class R>
class SimTK::NTraits< complex< R > >

Partial specialization for complex numbers – underlying real R is still a template parameter.

Member Typedef Documentation

template<class R >
typedef C SimTK::NTraits< complex< R > >::T
template<class R >
typedef negator<C> SimTK::NTraits< complex< R > >::TNeg
template<class R >
typedef C SimTK::NTraits< complex< R > >::TWithoutNegator
template<class R >
typedef R SimTK::NTraits< complex< R > >::TReal
template<class R >
typedef R SimTK::NTraits< complex< R > >::TImag
template<class R >
typedef C SimTK::NTraits< complex< R > >::TComplex
template<class R >
typedef conjugate<R> SimTK::NTraits< complex< R > >::THerm
template<class R >
typedef C SimTK::NTraits< complex< R > >::TPosTrans
template<class R >
typedef R SimTK::NTraits< complex< R > >::TSqHermT
template<class R >
typedef R SimTK::NTraits< complex< R > >::TSqTHerm
template<class R >
typedef C SimTK::NTraits< complex< R > >::TElement
template<class R >
typedef C SimTK::NTraits< complex< R > >::TRow
template<class R >
typedef C SimTK::NTraits< complex< R > >::TCol
template<class R >
typedef C SimTK::NTraits< complex< R > >::TSqrt
template<class R >
typedef R SimTK::NTraits< complex< R > >::TAbs
template<class R >
typedef C SimTK::NTraits< complex< R > >::TStandard
template<class R >
typedef C SimTK::NTraits< complex< R > >::TInvert
template<class R >
typedef C SimTK::NTraits< complex< R > >::TNormalize
template<class R >
typedef C SimTK::NTraits< complex< R > >::Scalar
template<class R >
typedef C SimTK::NTraits< complex< R > >::ULessScalar
template<class R >
typedef C SimTK::NTraits< complex< R > >::Number
template<class R >
typedef C SimTK::NTraits< complex< R > >::StdNumber
template<class R >
typedef R SimTK::NTraits< complex< R > >::Precision
template<class R >
typedef R SimTK::NTraits< complex< R > >::ScalarNormSq

Member Enumeration Documentation

template<class R >
anonymous enum
Enumerator
NRows 
NCols 
RowSpacing 
ColSpacing 
NPackedElements 
NActualElements 
NActualScalars 
ImagOffset 
RealStrideFactor 
ArgDepth 
IsScalar 
IsULessScalar 
IsNumber 
IsStdNumber 
IsPrecision 
SignInterpretation 

Member Function Documentation

template<class R >
static const T* SimTK::NTraits< complex< R > >::getData ( const T t)
inlinestatic
template<class R >
static T* SimTK::NTraits< complex< R > >::updData ( T t)
inlinestatic
template<class R >
static const R& SimTK::NTraits< complex< R > >::real ( const T t)
inlinestatic
template<class R >
static R& SimTK::NTraits< complex< R > >::real ( T t)
inlinestatic
template<class R >
static const R& SimTK::NTraits< complex< R > >::imag ( const T t)
inlinestatic
template<class R >
static R& SimTK::NTraits< complex< R > >::imag ( T t)
inlinestatic
template<class R >
static const TNeg& SimTK::NTraits< complex< R > >::negate ( const T t)
inlinestatic
template<class R >
static TNeg& SimTK::NTraits< complex< R > >::negate ( T t)
inlinestatic
template<class R >
static const THerm& SimTK::NTraits< complex< R > >::transpose ( const T t)
inlinestatic
template<class R >
static THerm& SimTK::NTraits< complex< R > >::transpose ( T t)
inlinestatic
template<class R >
static const TPosTrans& SimTK::NTraits< complex< R > >::positionalTranspose ( const T t)
inlinestatic
template<class R >
static TPosTrans& SimTK::NTraits< complex< R > >::positionalTranspose ( T t)
inlinestatic
template<class R >
static const TWithoutNegator& SimTK::NTraits< complex< R > >::castAwayNegatorIfAny ( const T t)
inlinestatic
template<class R >
static TWithoutNegator& SimTK::NTraits< complex< R > >::updCastAwayNegatorIfAny ( T t)
inlinestatic
template<class R >
static ScalarNormSq SimTK::NTraits< complex< R > >::scalarNormSqr ( const T t)
inlinestatic
template<class R >
static TSqrt SimTK::NTraits< complex< R > >::sqrt ( const T t)
inlinestatic
template<class R >
static TAbs SimTK::NTraits< complex< R > >::abs ( const T t)
inlinestatic
template<class R >
static const TStandard& SimTK::NTraits< complex< R > >::standardize ( const T t)
inlinestatic
template<class R >
static TNormalize SimTK::NTraits< complex< R > >::normalize ( const T t)
inlinestatic
template<class R >
static TInvert SimTK::NTraits< complex< R > >::invert ( const T t)
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getNaN ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getInfinity ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getI ( )
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isFinite ( const T t)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNaN ( const T t)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isInf ( const T t)
inlinestatic
template<class R >
static double SimTK::NTraits< complex< R > >::getDefaultTolerance ( )
inlinestatic
template<class R >
template<class R2 >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const complex< R2 > &  b 
)
inlinestatic
template<class R >
template<class R2 >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const complex< R2 > &  b,
double  tol 
)
inlinestatic
template<class R >
template<class R2 >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const conjugate< R2 > &  b 
)
inlinestatic
template<class R >
template<class R2 >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const conjugate< R2 > &  b,
double  tol 
)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const float &  b 
)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const float &  b,
double  tol 
)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const double &  b 
)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const double &  b,
double  tol 
)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const long double &  b 
)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const long double &  b,
double  tol 
)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
int  b 
)
inlinestatic
template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
int  b,
double  tol 
)
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getZero ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOne ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getMinusOne ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getTwo ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getThree ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneHalf ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneThird ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneFourth ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneFifth ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneSixth ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneSeventh ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneEighth ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneNinth ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getPi ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneOverPi ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getE ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getLog2E ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getLog10E ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getSqrt2 ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneOverSqrt2 ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getSqrt3 ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneOverSqrt3 ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getCubeRoot2 ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getCubeRoot3 ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getLn2 ( )
inlinestatic
template<class R >
static const T& SimTK::NTraits< complex< R > >::getLn10 ( )
inlinestatic

The documentation for this class was generated from the following file: