NTraits< complex< R > > Class Template Reference

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

#include <NTraits.h>

Inheritance diagram for NTraits< complex< R > >:
CNT< complex< R > >

List of all members.

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

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

Member Enumeration Documentation

anonymous enum
Enumerator:
NRows 
NCols 
RowSpacing 
ColSpacing 
NPackedElements 
NActualElements 
NActualScalars 
ImagOffset 
RealStrideFactor 
ArgDepth 
IsScalar 
IsULessScalar 
IsNumber 
IsStdNumber 
IsPrecision 
SignInterpretation 

Member Function Documentation

static TAbs abs ( const T t  )  [inline, static]

References SimTK::abs().

static const TWithoutNegator& castAwayNegatorIfAny ( const T t  )  [inline, static]
static const T& getCubeRoot2 (  )  [inline, static]
static const T& getCubeRoot3 (  )  [inline, static]
static const T* getData ( const T t  )  [inline, static]
static double getDefaultTolerance (  )  [inline, static]
static const T& getE (  )  [inline, static]
static const T& getI (  )  [inline, static]
static const T& getInfinity (  )  [inline, static]
static const T& getLn10 (  )  [inline, static]
static const T& getLn2 (  )  [inline, static]
static const T& getLog10E (  )  [inline, static]
static const T& getLog2E (  )  [inline, static]
static const T& getMinusOne (  )  [inline, static]
static const T& getNaN (  )  [inline, static]
static const T& getOne (  )  [inline, static]
static const T& getOneEighth (  )  [inline, static]
static const T& getOneFifth (  )  [inline, static]
static const T& getOneFourth (  )  [inline, static]
static const T& getOneHalf (  )  [inline, static]
static const T& getOneNinth (  )  [inline, static]
static const T& getOneOverPi (  )  [inline, static]
static const T& getOneOverSqrt2 (  )  [inline, static]
static const T& getOneOverSqrt3 (  )  [inline, static]
static const T& getOneSeventh (  )  [inline, static]
static const T& getOneSixth (  )  [inline, static]
static const T& getOneThird (  )  [inline, static]
static const T& getPi (  )  [inline, static]
static const T& getSqrt2 (  )  [inline, static]
static const T& getSqrt3 (  )  [inline, static]
static const T& getThree (  )  [inline, static]
static const T& getTwo (  )  [inline, static]
static const T& getZero (  )  [inline, static]
static R& imag ( T t  )  [inline, static]
static const R& imag ( const T t  )  [inline, static]
static TInvert invert ( const T t  )  [inline, static]
static bool isFinite ( const T t  )  [inline, static]

References SimTK::isFinite().

static bool isInf ( const T t  )  [inline, static]

References SimTK::isInf().

static bool isNaN ( const T t  )  [inline, static]

References SimTK::isNaN().

static bool isNumericallyEqual ( const T a,
int  b,
double  tol 
) [inline, static]
static bool isNumericallyEqual ( const T a,
int  b 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const long double &  b,
double  tol 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const long double &  b 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const double &  b,
double  tol 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const double &  b 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const float &  b,
double  tol 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const float &  b 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const conjugate< R2 > &  b,
double  tol 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const conjugate< R2 > &  b 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const complex< R2 > &  b,
double  tol 
) [inline, static]
static bool isNumericallyEqual ( const T a,
const complex< R2 > &  b 
) [inline, static]
static TNeg& negate ( T t  )  [inline, static]
static const TNeg& negate ( const T t  )  [inline, static]
static TNormalize normalize ( const T t  )  [inline, static]

References SimTK::abs().

static TPosTrans& positionalTranspose ( T t  )  [inline, static]
static const TPosTrans& positionalTranspose ( const T t  )  [inline, static]
static R& real ( T t  )  [inline, static]
static const R& real ( const T t  )  [inline, static]
static ScalarNormSq scalarNormSqr ( const T t  )  [inline, static]
static TSqrt sqrt ( const T t  )  [inline, static]
static const TStandard& standardize ( const T t  )  [inline, static]
static THerm& transpose ( T t  )  [inline, static]
static const THerm& transpose ( const T t  )  [inline, static]
static TWithoutNegator& updCastAwayNegatorIfAny ( T t  )  [inline, static]
static T* updData ( T t  )  [inline, static]

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

Generated by  doxygen 1.6.2