Simbody  3.7
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, 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

◆ T

template<class R >
typedef C SimTK::NTraits< complex< R > >::T

◆ TNeg

template<class R >
typedef negator<C> SimTK::NTraits< complex< R > >::TNeg

◆ TWithoutNegator

template<class R >
typedef C SimTK::NTraits< complex< R > >::TWithoutNegator

◆ TReal

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

◆ TImag

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

◆ TComplex

template<class R >
typedef C SimTK::NTraits< complex< R > >::TComplex

◆ THerm

template<class R >
typedef conjugate<R> SimTK::NTraits< complex< R > >::THerm

◆ TPosTrans

template<class R >
typedef C SimTK::NTraits< complex< R > >::TPosTrans

◆ TSqHermT

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

◆ TSqTHerm

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

◆ TElement

template<class R >
typedef C SimTK::NTraits< complex< R > >::TElement

◆ TRow

template<class R >
typedef C SimTK::NTraits< complex< R > >::TRow

◆ TCol

template<class R >
typedef C SimTK::NTraits< complex< R > >::TCol

◆ TSqrt

template<class R >
typedef C SimTK::NTraits< complex< R > >::TSqrt

◆ TAbs

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

◆ TStandard

template<class R >
typedef C SimTK::NTraits< complex< R > >::TStandard

◆ TInvert

template<class R >
typedef C SimTK::NTraits< complex< R > >::TInvert

◆ TNormalize

template<class R >
typedef C SimTK::NTraits< complex< R > >::TNormalize

◆ Scalar

template<class R >
typedef C SimTK::NTraits< complex< R > >::Scalar

◆ ULessScalar

template<class R >
typedef C SimTK::NTraits< complex< R > >::ULessScalar

◆ Number

template<class R >
typedef C SimTK::NTraits< complex< R > >::Number

◆ StdNumber

template<class R >
typedef C SimTK::NTraits< complex< R > >::StdNumber

◆ Precision

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

◆ ScalarNormSq

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

Member Enumeration Documentation

◆ anonymous enum

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

◆ getData()

template<class R >
static const T* SimTK::NTraits< complex< R > >::getData ( const T t)
inlinestatic

◆ updData()

template<class R >
static T* SimTK::NTraits< complex< R > >::updData ( T t)
inlinestatic

◆ real() [1/2]

template<class R >
static const R& SimTK::NTraits< complex< R > >::real ( const T t)
inlinestatic

◆ real() [2/2]

template<class R >
static R& SimTK::NTraits< complex< R > >::real ( T t)
inlinestatic

◆ imag() [1/2]

template<class R >
static const R& SimTK::NTraits< complex< R > >::imag ( const T t)
inlinestatic

◆ imag() [2/2]

template<class R >
static R& SimTK::NTraits< complex< R > >::imag ( T t)
inlinestatic

◆ negate() [1/2]

template<class R >
static const TNeg& SimTK::NTraits< complex< R > >::negate ( const T t)
inlinestatic

◆ negate() [2/2]

template<class R >
static TNeg& SimTK::NTraits< complex< R > >::negate ( T t)
inlinestatic

◆ transpose() [1/2]

template<class R >
static const THerm& SimTK::NTraits< complex< R > >::transpose ( const T t)
inlinestatic

◆ transpose() [2/2]

template<class R >
static THerm& SimTK::NTraits< complex< R > >::transpose ( T t)
inlinestatic

◆ positionalTranspose() [1/2]

template<class R >
static const TPosTrans& SimTK::NTraits< complex< R > >::positionalTranspose ( const T t)
inlinestatic

◆ positionalTranspose() [2/2]

template<class R >
static TPosTrans& SimTK::NTraits< complex< R > >::positionalTranspose ( T t)
inlinestatic

◆ castAwayNegatorIfAny()

template<class R >
static const TWithoutNegator& SimTK::NTraits< complex< R > >::castAwayNegatorIfAny ( const T t)
inlinestatic

◆ updCastAwayNegatorIfAny()

template<class R >
static TWithoutNegator& SimTK::NTraits< complex< R > >::updCastAwayNegatorIfAny ( T t)
inlinestatic

◆ scalarNormSqr()

template<class R >
static ScalarNormSq SimTK::NTraits< complex< R > >::scalarNormSqr ( const T t)
inlinestatic

◆ sqrt()

template<class R >
static TSqrt SimTK::NTraits< complex< R > >::sqrt ( const T t)
inlinestatic

◆ abs()

template<class R >
static TAbs SimTK::NTraits< complex< R > >::abs ( const T t)
inlinestatic

◆ standardize()

template<class R >
static const TStandard& SimTK::NTraits< complex< R > >::standardize ( const T t)
inlinestatic

◆ normalize()

template<class R >
static TNormalize SimTK::NTraits< complex< R > >::normalize ( const T t)
inlinestatic

◆ invert()

template<class R >
static TInvert SimTK::NTraits< complex< R > >::invert ( const T t)
inlinestatic

◆ getNaN()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getNaN ( )
inlinestatic

◆ getInfinity()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getInfinity ( )
inlinestatic

◆ getI()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getI ( )
inlinestatic

◆ isFinite()

template<class R >
static bool SimTK::NTraits< complex< R > >::isFinite ( const T t)
inlinestatic

◆ isNaN()

template<class R >
static bool SimTK::NTraits< complex< R > >::isNaN ( const T t)
inlinestatic

◆ isInf()

template<class R >
static bool SimTK::NTraits< complex< R > >::isInf ( const T t)
inlinestatic

◆ getDefaultTolerance()

template<class R >
static double SimTK::NTraits< complex< R > >::getDefaultTolerance ( )
inlinestatic

◆ isNumericallyEqual() [1/10]

template<class R >
template<class R2 >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const complex< R2 > &  b 
)
inlinestatic

◆ isNumericallyEqual() [2/10]

template<class R >
template<class R2 >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const complex< R2 > &  b,
double  tol 
)
inlinestatic

◆ isNumericallyEqual() [3/10]

template<class R >
template<class R2 >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const conjugate< R2 > &  b 
)
inlinestatic

◆ isNumericallyEqual() [4/10]

template<class R >
template<class R2 >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const conjugate< R2 > &  b,
double  tol 
)
inlinestatic

◆ isNumericallyEqual() [5/10]

template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const float &  b 
)
inlinestatic

◆ isNumericallyEqual() [6/10]

template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const float &  b,
double  tol 
)
inlinestatic

◆ isNumericallyEqual() [7/10]

template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const double &  b 
)
inlinestatic

◆ isNumericallyEqual() [8/10]

template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
const double &  b,
double  tol 
)
inlinestatic

◆ isNumericallyEqual() [9/10]

template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
int  b 
)
inlinestatic

◆ isNumericallyEqual() [10/10]

template<class R >
static bool SimTK::NTraits< complex< R > >::isNumericallyEqual ( const T a,
int  b,
double  tol 
)
inlinestatic

◆ getZero()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getZero ( )
inlinestatic

◆ getOne()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOne ( )
inlinestatic

◆ getMinusOne()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getMinusOne ( )
inlinestatic

◆ getTwo()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getTwo ( )
inlinestatic

◆ getThree()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getThree ( )
inlinestatic

◆ getOneHalf()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneHalf ( )
inlinestatic

◆ getOneThird()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneThird ( )
inlinestatic

◆ getOneFourth()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneFourth ( )
inlinestatic

◆ getOneFifth()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneFifth ( )
inlinestatic

◆ getOneSixth()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneSixth ( )
inlinestatic

◆ getOneSeventh()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneSeventh ( )
inlinestatic

◆ getOneEighth()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneEighth ( )
inlinestatic

◆ getOneNinth()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneNinth ( )
inlinestatic

◆ getPi()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getPi ( )
inlinestatic

◆ getOneOverPi()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneOverPi ( )
inlinestatic

◆ getE()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getE ( )
inlinestatic

◆ getLog2E()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getLog2E ( )
inlinestatic

◆ getLog10E()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getLog10E ( )
inlinestatic

◆ getSqrt2()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getSqrt2 ( )
inlinestatic

◆ getOneOverSqrt2()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneOverSqrt2 ( )
inlinestatic

◆ getSqrt3()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getSqrt3 ( )
inlinestatic

◆ getOneOverSqrt3()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getOneOverSqrt3 ( )
inlinestatic

◆ getCubeRoot2()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getCubeRoot2 ( )
inlinestatic

◆ getCubeRoot3()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getCubeRoot3 ( )
inlinestatic

◆ getLn2()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getLn2 ( )
inlinestatic

◆ getLn10()

template<class R >
static const T& SimTK::NTraits< complex< R > >::getLn10 ( )
inlinestatic

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