Simbody
|
#include <Row.h>
Classes | |
struct | EltResult |
struct | Result |
struct | Substitute |
Public Types | |
enum | { NRows = 1, NCols = N, NPackedElements = N, NActualElements = N * STRIDE, NActualScalars = CNT<E>::NActualScalars * NActualElements, RowSpacing = NActualElements, ColSpacing = STRIDE, ImagOffset = NTraits<ENumber>::ImagOffset, RealStrideFactor = 1, ArgDepth, IsScalar = 0, IsULessScalar = 0, IsNumber = 0, IsStdNumber = 0, IsPrecision = 0, SignInterpretation = CNT<E>::SignInterpretation } |
typedef Row< N, E, STRIDE > | T |
typedef Row< N, ENeg, STRIDE > | TNeg |
typedef Row< N, EWithoutNegator, STRIDE > | TWithoutNegator |
typedef Row< N, EReal, STRIDE *CNT< E >::RealStrideFactor > | TReal |
typedef Row< N, EImag, STRIDE *CNT< E >::RealStrideFactor > | TImag |
typedef Row< N, EComplex, STRIDE > | TComplex |
typedef Vec< N, EHerm, STRIDE > | THerm |
typedef Vec< N, E, STRIDE > | TPosTrans |
typedef E | TElement |
typedef Row | TRow |
typedef E | TCol |
typedef Vec< N, ESqrt, 1 > | TSqrt |
typedef Row< N, EAbs, 1 > | TAbs |
typedef Row< N, EStandard, 1 > | TStandard |
typedef Vec< N, EInvert, 1 > | TInvert |
typedef Row< N, ENormalize, 1 > | TNormalize |
typedef SymMat< N, ESqHermT > | TSqHermT |
typedef EScalarNormSq | TSqTHerm |
typedef EScalar | Scalar |
typedef EULessScalar | ULessScalar |
typedef ENumber | Number |
typedef EStdNumber | StdNumber |
typedef EPrecision | Precision |
typedef EScalarNormSq | ScalarNormSq |
Public Member Functions | |
int | size () const |
int | nrow () const |
int | ncol () const |
ScalarNormSq | scalarNormSqr () const |
TSqrt | sqrt () const |
TAbs | abs () const |
TStandard | standardize () const |
EStandard | sum () const |
Row () | |
Row (const Row &src) | |
Row & | operator= (const Row &src) |
template<int SS> | |
Row (const Row< N, E, SS > &src) | |
template<int SS> | |
Row (const Row< N, ENeg, SS > &src) | |
template<class EE , int SS> | |
Row (const Row< N, EE, SS > &vv) | |
Row (const E &e) | |
Row (const ENeg &ne) | |
Row (int i) | |
Row (const E &e0, const E &e1) | |
Row (const E &e0, const E &e1, const E &e2) | |
Row (const E &e0, const E &e1, const E &e2, const E &e3) | |
Row (const E &e0, const E &e1, const E &e2, const E &e3, const E &e4) | |
Row (const E &e0, const E &e1, const E &e2, const E &e3, const E &e4, const E &e5) | |
Row (const E &e0, const E &e1, const E &e2, const E &e3, const E &e4, const E &e5, const E &e6) | |
Row (const E &e0, const E &e1, const E &e2, const E &e3, const E &e4, const E &e5, const E &e6, const E &e7) | |
Row (const E &e0, const E &e1, const E &e2, const E &e3, const E &e4, const E &e5, const E &e6, const E &e7, const E &e8) | |
template<class EE > | |
Row (const EE *p) | |
template<class EE > | |
Row & | operator= (const EE *p) |
template<class EE , int SS> | |
Row & | operator= (const Row< N, EE, SS > &vv) |
template<class EE , int SS> | |
Row & | operator+= (const Row< N, EE, SS > &r) |
template<class EE , int SS> | |
Row & | operator+= (const Row< N, negator< EE >, SS > &r) |
template<class EE , int SS> | |
Row & | operator-= (const Row< N, EE, SS > &r) |
template<class EE , int SS> | |
Row & | operator-= (const Row< N, negator< EE >, SS > &r) |
template<class EE , int SS> | |
Row< N, typename CNT< E > ::template Result< EE >::Add > | conformingAdd (const Row< N, EE, SS > &r) const |
template<class EE , int SS> | |
Row< N, typename CNT< E > ::template Result< EE >::Sub > | conformingSubtract (const Row< N, EE, SS > &r) const |
template<class EE , int SS> | |
CNT< E >::template Result< EE > ::Mul | conformingMultiply (const Vec< N, EE, SS > &r) const |
template<int MatNCol, class EE , int CS, int RS> | |
Row< MatNCol, typename CNT< E > ::template Result< EE >::Mul > | conformingMultiply (const Mat< N, MatNCol, EE, CS, RS > &m) const |
const E & | operator[] (int i) const |
E & | operator[] (int i) |
const E & | operator() (int i) const |
E & | operator() (int i) |
ScalarNormSq | normSqr () const |
CNT< ScalarNormSq >::TSqrt | norm () const |
TNormalize | normalize () const |
TInvert | invert () const |
const Row & | operator+ () const |
const TNeg & | operator- () const |
TNeg & | operator- () |
const THerm & | operator~ () const |
THerm & | operator~ () |
const TNeg & | negate () const |
TNeg & | updNegate () |
const THerm & | transpose () const |
THerm & | updTranspose () |
const TPosTrans & | positionalTranspose () const |
TPosTrans & | updPositionalTranspose () |
const TReal & | real () const |
TReal & | real () |
const TImag & | imag () const |
TImag & | imag () |
const TWithoutNegator & | castAwayNegatorIfAny () const |
TWithoutNegator & | updCastAwayNegatorIfAny () |
template<class EE > | |
Row< N, typename CNT< E > ::template Result< EE >::Mul > | scalarMultiply (const EE &e) const |
template<class EE > | |
Row< N, typename CNT< EE > ::template Result< E >::Mul > | scalarMultiplyFromLeft (const EE &e) const |
template<class EE > | |
Row< N, typename CNT< E > ::template Result< EE >::Dvd > | scalarDivide (const EE &e) const |
template<class EE > | |
Row< N, typename CNT< EE > ::template Result< E >::Dvd > | scalarDivideFromLeft (const EE &e) const |
template<class EE > | |
Row< N, typename CNT< E > ::template Result< EE >::Add > | scalarAdd (const EE &e) const |
template<class EE > | |
Row< N, typename CNT< E > ::template Result< EE >::Sub > | scalarSubtract (const EE &e) const |
template<class EE > | |
Row< N, typename CNT< EE > ::template Result< E >::Sub > | scalarSubtractFromLeft (const EE &e) const |
template<class EE > | |
Row & | operator= (const EE &e) |
template<class EE > | |
Row & | operator+= (const EE &e) |
template<class EE > | |
Row & | operator-= (const EE &e) |
template<class EE > | |
Row & | operator*= (const EE &e) |
template<class EE > | |
Row & | operator/= (const EE &e) |
template<class EE > | |
Row & | scalarEq (const EE &ee) |
template<class EE > | |
Row & | scalarPlusEq (const EE &ee) |
template<class EE > | |
Row & | scalarMinusEq (const EE &ee) |
template<class EE > | |
Row & | scalarMinusEqFromLeft (const EE &ee) |
template<class EE > | |
Row & | scalarTimesEq (const EE &ee) |
template<class EE > | |
Row & | scalarTimesEqFromLeft (const EE &ee) |
template<class EE > | |
Row & | scalarDivideEq (const EE &ee) |
template<class EE > | |
Row & | scalarDivideEqFromLeft (const EE &ee) |
void | setToNaN () |
void | setToZero () |
template<int NN> | |
const Row< NN, ELT, STRIDE > & | getSubRow (int j) const |
template<int NN> | |
Row< NN, ELT, STRIDE > & | updSubRow (int j) |
Row< N-1, ELT, 1 > | drop1 (int p) const |
template<class EE > | |
Row< N+1, ELT, 1 > | append1 (const EE &v) const |
template<class EE > | |
Row< N+1, ELT, 1 > | insert1 (int p, const EE &v) const |
bool | isNaN () const |
Return true if any element of this Row contains a NaN anywhere. | |
bool | isInf () const |
Return true if any element of this Row contains a +Inf or -Inf somewhere but no element contains a NaN anywhere. | |
bool | isFinite () const |
Return true if no element contains an Infinity or a NaN. | |
template<class E2 , int CS2> | |
bool | isNumericallyEqual (const Row< N, E2, CS2 > &r, double tol) const |
Test whether this row vector is numerically equal to some other row with the same shape, using a specified tolerance. | |
template<class E2 , int CS2> | |
bool | isNumericallyEqual (const Row< N, E2, CS2 > &r) const |
Test whether this row vector is numerically equal to some other row with the same shape, using a default tolerance which is the looser of the default tolerances of the two objects being compared. | |
bool | isNumericallyEqual (const ELT &e, double tol=getDefaultTolerance()) const |
Test whether every element of this row vector is numerically equal to the given element, using either a specified tolerance or the row's default tolerance (which is always the same or looser than the default tolerance for one of its elements). | |
Static Public Member Functions | |
static const Row & | getAs (const ELT *p) |
static Row & | updAs (ELT *p) |
template<int NN> | |
static const Row & | getSubRow (const Row< NN, ELT, STRIDE > &r, int j) |
template<int NN> | |
static Row & | updSubRow (Row< NN, ELT, STRIDE > &r, int j) |
static Row< N, ELT, 1 > | getNaN () |
static double | getDefaultTolerance () |
For approximate comparisions, the default tolerance to use for a vector is the same as its elements' default tolerance. |
Generic Row.
typedef Row<N,E,STRIDE> SimTK::Row< N, ELT, STRIDE >::T |
typedef Row<N,ENeg,STRIDE> SimTK::Row< N, ELT, STRIDE >::TNeg |
typedef Row<N,EWithoutNegator,STRIDE> SimTK::Row< N, ELT, STRIDE >::TWithoutNegator |
typedef Row<N,EReal,STRIDE*CNT<E>::RealStrideFactor> SimTK::Row< N, ELT, STRIDE >::TReal |
typedef Row<N,EImag,STRIDE*CNT<E>::RealStrideFactor> SimTK::Row< N, ELT, STRIDE >::TImag |
typedef Row<N,EComplex,STRIDE> SimTK::Row< N, ELT, STRIDE >::TComplex |
typedef Vec<N,EHerm,STRIDE> SimTK::Row< N, ELT, STRIDE >::THerm |
typedef Vec<N,E,STRIDE> SimTK::Row< N, ELT, STRIDE >::TPosTrans |
typedef E SimTK::Row< N, ELT, STRIDE >::TElement |
typedef Row SimTK::Row< N, ELT, STRIDE >::TRow |
typedef E SimTK::Row< N, ELT, STRIDE >::TCol |
typedef Vec<N,ESqrt,1> SimTK::Row< N, ELT, STRIDE >::TSqrt |
typedef Row<N,EAbs,1> SimTK::Row< N, ELT, STRIDE >::TAbs |
typedef Row<N,EStandard,1> SimTK::Row< N, ELT, STRIDE >::TStandard |
typedef Vec<N,EInvert,1> SimTK::Row< N, ELT, STRIDE >::TInvert |
typedef Row<N,ENormalize,1> SimTK::Row< N, ELT, STRIDE >::TNormalize |
typedef SymMat<N,ESqHermT> SimTK::Row< N, ELT, STRIDE >::TSqHermT |
typedef EScalarNormSq SimTK::Row< N, ELT, STRIDE >::TSqTHerm |
typedef EScalar SimTK::Row< N, ELT, STRIDE >::Scalar |
typedef EULessScalar SimTK::Row< N, ELT, STRIDE >::ULessScalar |
typedef ENumber SimTK::Row< N, ELT, STRIDE >::Number |
typedef EStdNumber SimTK::Row< N, ELT, STRIDE >::StdNumber |
typedef EPrecision SimTK::Row< N, ELT, STRIDE >::Precision |
typedef EScalarNormSq SimTK::Row< N, ELT, STRIDE >::ScalarNormSq |
anonymous enum |
SimTK::Row< N, ELT, STRIDE >::Row | ( | ) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const Row< N, ELT, STRIDE > & | src | ) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const Row< N, E, SS > & | src | ) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const Row< N, ENeg, SS > & | src | ) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const Row< N, EE, SS > & | vv | ) | [inline, explicit] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e | ) | [inline, explicit] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const ENeg & | ne | ) | [inline, explicit] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | int | i | ) | [inline, explicit] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e0, |
const E & | e1 | ||
) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e0, |
const E & | e1, | ||
const E & | e2 | ||
) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e0, |
const E & | e1, | ||
const E & | e2, | ||
const E & | e3 | ||
) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e0, |
const E & | e1, | ||
const E & | e2, | ||
const E & | e3, | ||
const E & | e4 | ||
) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e0, |
const E & | e1, | ||
const E & | e2, | ||
const E & | e3, | ||
const E & | e4, | ||
const E & | e5 | ||
) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e0, |
const E & | e1, | ||
const E & | e2, | ||
const E & | e3, | ||
const E & | e4, | ||
const E & | e5, | ||
const E & | e6 | ||
) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e0, |
const E & | e1, | ||
const E & | e2, | ||
const E & | e3, | ||
const E & | e4, | ||
const E & | e5, | ||
const E & | e6, | ||
const E & | e7 | ||
) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const E & | e0, |
const E & | e1, | ||
const E & | e2, | ||
const E & | e3, | ||
const E & | e4, | ||
const E & | e5, | ||
const E & | e6, | ||
const E & | e7, | ||
const E & | e8 | ||
) | [inline] |
SimTK::Row< N, ELT, STRIDE >::Row | ( | const EE * | p | ) | [inline, explicit] |
int SimTK::Row< N, ELT, STRIDE >::size | ( | ) | const [inline] |
int SimTK::Row< N, ELT, STRIDE >::nrow | ( | ) | const [inline] |
int SimTK::Row< N, ELT, STRIDE >::ncol | ( | ) | const [inline] |
ScalarNormSq SimTK::Row< N, ELT, STRIDE >::scalarNormSqr | ( | ) | const [inline] |
TSqrt SimTK::Row< N, ELT, STRIDE >::sqrt | ( | ) | const [inline] |
TAbs SimTK::Row< N, ELT, STRIDE >::abs | ( | ) | const [inline] |
Reimplemented in SimTK::UnitRow< P, S >.
TStandard SimTK::Row< N, ELT, STRIDE >::standardize | ( | ) | const [inline] |
EStandard SimTK::Row< N, ELT, STRIDE >::sum | ( | ) | const [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator= | ( | const Row< N, ELT, STRIDE > & | src | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator= | ( | const EE * | p | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator= | ( | const Row< N, EE, SS > & | vv | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator+= | ( | const Row< N, EE, SS > & | r | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator+= | ( | const Row< N, negator< EE >, SS > & | r | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator-= | ( | const Row< N, EE, SS > & | r | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator-= | ( | const Row< N, negator< EE >, SS > & | r | ) | [inline] |
Row<N,typename CNT<E>::template Result<EE>::Add> SimTK::Row< N, ELT, STRIDE >::conformingAdd | ( | const Row< N, EE, SS > & | r | ) | const [inline] |
Row<N,typename CNT<E>::template Result<EE>::Sub> SimTK::Row< N, ELT, STRIDE >::conformingSubtract | ( | const Row< N, EE, SS > & | r | ) | const [inline] |
CNT<E>::template Result<EE>::Mul SimTK::Row< N, ELT, STRIDE >::conformingMultiply | ( | const Vec< N, EE, SS > & | r | ) | const [inline] |
Row<MatNCol,typename CNT<E>::template Result<EE>::Mul> SimTK::Row< N, ELT, STRIDE >::conformingMultiply | ( | const Mat< N, MatNCol, EE, CS, RS > & | m | ) | const [inline] |
const E& SimTK::Row< N, ELT, STRIDE >::operator[] | ( | int | i | ) | const [inline] |
Reimplemented in SimTK::UnitRow< P, S >.
E& SimTK::Row< N, ELT, STRIDE >::operator[] | ( | int | i | ) | [inline] |
const E& SimTK::Row< N, ELT, STRIDE >::operator() | ( | int | i | ) | const [inline] |
Reimplemented in SimTK::UnitRow< P, S >.
E& SimTK::Row< N, ELT, STRIDE >::operator() | ( | int | i | ) | [inline] |
ScalarNormSq SimTK::Row< N, ELT, STRIDE >::normSqr | ( | ) | const [inline] |
CNT<ScalarNormSq>::TSqrt SimTK::Row< N, ELT, STRIDE >::norm | ( | ) | const [inline] |
TNormalize SimTK::Row< N, ELT, STRIDE >::normalize | ( | ) | const [inline] |
TInvert SimTK::Row< N, ELT, STRIDE >::invert | ( | ) | const [inline] |
const Row& SimTK::Row< N, ELT, STRIDE >::operator+ | ( | ) | const [inline] |
const TNeg& SimTK::Row< N, ELT, STRIDE >::operator- | ( | ) | const [inline] |
Reimplemented in SimTK::UnitRow< P, S >.
TNeg& SimTK::Row< N, ELT, STRIDE >::operator- | ( | ) | [inline] |
const THerm& SimTK::Row< N, ELT, STRIDE >::operator~ | ( | ) | const [inline] |
Reimplemented in SimTK::UnitRow< P, S >.
THerm& SimTK::Row< N, ELT, STRIDE >::operator~ | ( | ) | [inline] |
Reimplemented in SimTK::UnitRow< P, S >.
const TNeg& SimTK::Row< N, ELT, STRIDE >::negate | ( | ) | const [inline] |
Reimplemented in SimTK::UnitRow< P, S >.
TNeg& SimTK::Row< N, ELT, STRIDE >::updNegate | ( | ) | [inline] |
const THerm& SimTK::Row< N, ELT, STRIDE >::transpose | ( | ) | const [inline] |
THerm& SimTK::Row< N, ELT, STRIDE >::updTranspose | ( | ) | [inline] |
const TPosTrans& SimTK::Row< N, ELT, STRIDE >::positionalTranspose | ( | ) | const [inline] |
TPosTrans& SimTK::Row< N, ELT, STRIDE >::updPositionalTranspose | ( | ) | [inline] |
const TReal& SimTK::Row< N, ELT, STRIDE >::real | ( | ) | const [inline] |
TReal& SimTK::Row< N, ELT, STRIDE >::real | ( | ) | [inline] |
const TImag& SimTK::Row< N, ELT, STRIDE >::imag | ( | ) | const [inline] |
TImag& SimTK::Row< N, ELT, STRIDE >::imag | ( | ) | [inline] |
const TWithoutNegator& SimTK::Row< N, ELT, STRIDE >::castAwayNegatorIfAny | ( | ) | const [inline] |
TWithoutNegator& SimTK::Row< N, ELT, STRIDE >::updCastAwayNegatorIfAny | ( | ) | [inline] |
Row<N, typename CNT<E>::template Result<EE>::Mul> SimTK::Row< N, ELT, STRIDE >::scalarMultiply | ( | const EE & | e | ) | const [inline] |
Row<N, typename CNT<EE>::template Result<E>::Mul> SimTK::Row< N, ELT, STRIDE >::scalarMultiplyFromLeft | ( | const EE & | e | ) | const [inline] |
Row<N, typename CNT<E>::template Result<EE>::Dvd> SimTK::Row< N, ELT, STRIDE >::scalarDivide | ( | const EE & | e | ) | const [inline] |
Row<N, typename CNT<EE>::template Result<E>::Dvd> SimTK::Row< N, ELT, STRIDE >::scalarDivideFromLeft | ( | const EE & | e | ) | const [inline] |
Row<N, typename CNT<E>::template Result<EE>::Add> SimTK::Row< N, ELT, STRIDE >::scalarAdd | ( | const EE & | e | ) | const [inline] |
Row<N, typename CNT<E>::template Result<EE>::Sub> SimTK::Row< N, ELT, STRIDE >::scalarSubtract | ( | const EE & | e | ) | const [inline] |
Row<N, typename CNT<EE>::template Result<E>::Sub> SimTK::Row< N, ELT, STRIDE >::scalarSubtractFromLeft | ( | const EE & | e | ) | const [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator= | ( | const EE & | e | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator+= | ( | const EE & | e | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator-= | ( | const EE & | e | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator*= | ( | const EE & | e | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::operator/= | ( | const EE & | e | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::scalarEq | ( | const EE & | ee | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::scalarPlusEq | ( | const EE & | ee | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::scalarMinusEq | ( | const EE & | ee | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::scalarMinusEqFromLeft | ( | const EE & | ee | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::scalarTimesEq | ( | const EE & | ee | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::scalarTimesEqFromLeft | ( | const EE & | ee | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::scalarDivideEq | ( | const EE & | ee | ) | [inline] |
Row& SimTK::Row< N, ELT, STRIDE >::scalarDivideEqFromLeft | ( | const EE & | ee | ) | [inline] |
void SimTK::Row< N, ELT, STRIDE >::setToNaN | ( | ) | [inline] |
void SimTK::Row< N, ELT, STRIDE >::setToZero | ( | ) | [inline] |
const Row<NN,ELT,STRIDE>& SimTK::Row< N, ELT, STRIDE >::getSubRow | ( | int | j | ) | const [inline] |
Row<NN,ELT,STRIDE>& SimTK::Row< N, ELT, STRIDE >::updSubRow | ( | int | j | ) | [inline] |
Row<N-1,ELT,1> SimTK::Row< N, ELT, STRIDE >::drop1 | ( | int | p | ) | const [inline] |
Row<N+1,ELT,1> SimTK::Row< N, ELT, STRIDE >::append1 | ( | const EE & | v | ) | const [inline] |
Row<N+1,ELT,1> SimTK::Row< N, ELT, STRIDE >::insert1 | ( | int | p, |
const EE & | v | ||
) | const [inline] |
static const Row& SimTK::Row< N, ELT, STRIDE >::getAs | ( | const ELT * | p | ) | [inline, static] |
static Row& SimTK::Row< N, ELT, STRIDE >::updAs | ( | ELT * | p | ) | [inline, static] |
static const Row& SimTK::Row< N, ELT, STRIDE >::getSubRow | ( | const Row< NN, ELT, STRIDE > & | r, |
int | j | ||
) | [inline, static] |
static Row& SimTK::Row< N, ELT, STRIDE >::updSubRow | ( | Row< NN, ELT, STRIDE > & | r, |
int | j | ||
) | [inline, static] |
static Row<N,ELT,1> SimTK::Row< N, ELT, STRIDE >::getNaN | ( | ) | [inline, static] |
bool SimTK::Row< N, ELT, STRIDE >::isNaN | ( | ) | const [inline] |
Return true if any element of this Row contains a NaN anywhere.
bool SimTK::Row< N, ELT, STRIDE >::isInf | ( | ) | const [inline] |
Return true if any element of this Row contains a +Inf or -Inf somewhere but no element contains a NaN anywhere.
bool SimTK::Row< N, ELT, STRIDE >::isFinite | ( | ) | const [inline] |
Return true if no element contains an Infinity or a NaN.
static double SimTK::Row< N, ELT, STRIDE >::getDefaultTolerance | ( | ) | [inline, static] |
For approximate comparisions, the default tolerance to use for a vector is the same as its elements' default tolerance.
bool SimTK::Row< N, ELT, STRIDE >::isNumericallyEqual | ( | const Row< N, E2, CS2 > & | r, |
double | tol | ||
) | const [inline] |
Test whether this row vector is numerically equal to some other row with the same shape, using a specified tolerance.
bool SimTK::Row< N, ELT, STRIDE >::isNumericallyEqual | ( | const Row< N, E2, CS2 > & | r | ) | const [inline] |
Test whether this row vector is numerically equal to some other row with the same shape, using a default tolerance which is the looser of the default tolerances of the two objects being compared.
bool SimTK::Row< N, ELT, STRIDE >::isNumericallyEqual | ( | const ELT & | e, |
double | tol = getDefaultTolerance() |
||
) | const [inline] |
Test whether every element of this row vector is numerically equal to the given element, using either a specified tolerance or the row's default tolerance (which is always the same or looser than the default tolerance for one of its elements).