KrisLibrary  1.0.0
Public Member Functions | List of all members
SpatialMatrix Struct Reference
Inheritance diagram for SpatialMatrix:
Math::MatrixTemplate< Real >

Public Member Functions

void setUpperLeft (const Matrix3 &mat11)
 
void setLowerRight (const Matrix3 &mat22)
 
void setUpperRight (const Matrix3 &mat12)
 
void setLowerLeft (const Matrix3 &mat21)
 
void getUpperLeft (Matrix3 &mat11) const
 
void getLowerRight (Matrix3 &mat22) const
 
void getUpperRight (Matrix3 &mat12) const
 
void getLowerLeft (Matrix3 &mat21) const
 
void setForceShift (const Vector3 &origMomentCenter, const Vector3 &newMomentCenter)
 
void setForceTransform (const RigidTransform &T)
 
void setVelocityShift (const Vector3 &origRefPoint, const Vector3 &newRefPoint)
 
void setVelocityTransform (const RigidTransform &T)
 
void setMassMatrix (const Real &mass, const Matrix3 &inertia)
 
- Public Member Functions inherited from Math::MatrixTemplate< Real >
 MatrixTemplate (const MyT &)
 
 MatrixTemplate (MyT &&)
 
 MatrixTemplate (int m, int n)
 
 MatrixTemplate (int m, int n, Realinitval)
 
 MatrixTemplate (int m, int n, const Real *vals)
 
 MatrixTemplate (int m, int n, const VectorT *rows)
 
Real * getPointer () const
 
int getCapacity () const
 
Real * getStart () const
 
Real * getRowPtr (int i) const
 
Real * getColPtr (int j) const
 
ItT begin () const
 
ItT end () const
 
int numRows () const
 
int numCols () const
 
void resize (int m, int n)
 
void resize (int m, int n, Realinitval)
 
void resizePersist (int m, int n)
 
void resizePersist (int m, int n, Realinitval)
 
void clear ()
 
MyT & operator= (const MyT &)
 
MyT & operator= (MyT &&)
 
bool operator== (const MyT &) const
 
bool operator!= (const MyT &a) const
 
const Real & operator() (int, int) const
 
Real & operator() (int, int)
 
void operator+= (const MyT &a)
 
void operator-= (const MyT &a)
 
void operator*= (Realc)
 
void operator*= (const MyT &)
 
void operator/= (Realc)
 
void copy (const MyT &)
 
void copy (const MatrixTemplate< T2 > &)
 
void copy (const Real *vals)
 
void copyColumns (const Real *vals)
 
void copyRows (const VectorT *rows)
 
void copyCols (const VectorT *cols)
 
void copySubMatrix (int i, int j, const MyT &)
 
void swap (MyT &)
 
void swapCopy (MyT &)
 
void add (const MyT &, const MyT &)
 
void sub (const MyT &, const MyT &)
 
void mul (const MyT &, const MyT &)
 
void mul (const VectorT &, VectorT &) const
 
void mul (const MyT &, Real)
 
void mulTransposeA (const MyT &a, const MyT &b)
 
void mulTransposeB (const MyT &a, const MyT &b)
 
void mulTranspose (const VectorT &, VectorT &) const
 
void div (const MyT &, Real)
 
void inc (const MyT &)
 
void dec (const MyT &)
 
void madd (const MyT &, Real)
 
void madd (const VectorT &, VectorT &) const
 
void maddTranspose (const VectorT &, VectorT &) const
 
void setRef (const MyT &, int i=0, int j=0, int istride=1, int jstride=1, int m=-1, int n=-1)
 
void setRef (Real *vals, int length, int offset=0, int istride=1, int jstride=1, int m=-1, int n=-1)
 
void setRefTranspose (const MyT &)
 
void set (Realc)
 
void setZero ()
 
void setIdentity ()
 
void setNegative (const MyT &)
 
void setTranspose (const MyT &)
 
void setAdjoint (const MyT &)
 
void setInverse (const MyT &)
 
void inplaceNegative ()
 
void inplaceMul (Real)
 
void inplaceDiv (Real)
 
void inplaceTranspose ()
 
void inplaceAdjoint ()
 
void inplaceInverse ()
 
void getSubMatrixCopy (int i, int j, MyT &) const
 
bool isRef () const
 
bool hasDims (int _m, int _n) const
 
bool isEmpty () const
 
bool isValidRow (int i) const
 
bool isValidCol (int j) const
 
bool isCompact () const
 
bool isRowMajor () const
 
bool isColMajor () const
 
bool isSquare () const
 
bool isValid () const
 
bool isZero (Realeps=0) const
 
bool isEqual (const MyT &a, Realeps=0) const
 
bool isIdentity () const
 
bool isDiagonal () const
 
bool isSymmetric () const
 
bool isDiagonallyDominant () const
 
bool isOrthogonal () const
 
bool isInvertible () const
 
Real trace () const
 
Real determinant () const
 
Real diagonalProduct () const
 
Real minElement (int *i=NULL, int *j=NULL) const
 
Real maxElement (int *i=NULL, int *j=NULL) const
 
Real minAbsElement (int *i=NULL, int *j=NULL) const
 
Real maxAbsElement (int *i=NULL, int *j=NULL) const
 
bool Read (File &)
 
bool Write (File &) const
 
void getRowRef (int i, VectorT &) const
 
void getColRef (int j, VectorT &) const
 
void getDiagRef (int d, VectorT &) const
 
VectorT row (int i) const
 
VectorT col (int j) const
 
VectorT diag (int d) const
 
void getRowCopy (int i, VectorT &b) const
 
void getColCopy (int j, VectorT &b) const
 
void getDiagCopy (int d, VectorT &b) const
 
void setRow (int i, Realc)
 
void setCol (int j, Realc)
 
void setDiag (int d, Realc)
 
void copyRow (int i, const VectorT &b)
 
void copyRow (int i, const Real *b)
 
void copyCol (int j, const VectorT &b)
 
void copyCol (int j, const Real *b)
 
void copyDiag (int d, const VectorT &b)
 
void copyDiag (int d, const Real *b)
 
void incRow (int i, const VectorT &b)
 
void incRow (int i, const MyT &m, int im)
 
void incCol (int j, const VectorT &b)
 
void incCol (int j, const MyT &m, int jm)
 
void incDiag (int d, const VectorT &b)
 
void mulRow (int i, Realc)
 
void mulCol (int j, Realc)
 
void mulDiag (int d, Realc)
 
void maddRow (int i, const VectorT &b, Realc)
 
void maddRow (int i, const MyT &m, int im, Realc)
 
void maddCol (int j, const VectorT &b, Realc)
 
void maddCol (int j, const MyT &m, int jm, Realc)
 
void maddDiag (int d, const VectorT &b, Realc)
 
Real dotRow (int i, const VectorT &b) const
 
Real dotRow (int i, const MyT &m, int im) const
 
Real dotCol (int j, const VectorT &b) const
 
Real dotCol (int j, const MyT &m, int jm) const
 
void componentMul (const MyT &a, const MyT &b)
 
void componentDiv (const MyT &a, const MyT &b)
 
void componentMadd (const MyT &a, const MyT &b)
 
void inplaceComponentMul (const MyT &c)
 
void inplaceComponentDiv (const MyT &c)
 

Additional Inherited Members

- Public Types inherited from Math::MatrixTemplate< Real >
typedef class MatrixTemplate< Real > MyT
 
typedef class MatrixIterator< Real > ItT
 
typedef class VectorTemplate< Real > VectorT
 
- Public Attributes inherited from Math::MatrixTemplate< Real >
int base
 
int istride
 
int m
 
int jstride
 
int n
 

The documentation for this struct was generated from the following files: