MatrixHelper Class Template Reference

#include <MatrixHelper.h>

List of all members.

template<class S>
class SimTK::MatrixHelper< S >


Public Member Functions

 ~MatrixHelper ()
 MatrixHelper (int esz, int cppEsz)
void clear ()
 MatrixHelper (int esz, int cppEsz, int m, int n, bool lockNrow=false, bool lockNcol=false)
 MatrixHelper (int esz, int cppEsz, int m, int n, int leadingDim, const S *)
 MatrixHelper (int esz, int cppEsz, int m, int n, int leadingDim, S *)
 MatrixHelper (const MatrixHelper &, int i, int j, int nrow, int ncol)
 MatrixHelper (MatrixHelper &, int i, int j, int nrow, int ncol)
 MatrixHelper (const MatrixHelper< typename CNT< S >::THerm > &, const TransposeView &)
 MatrixHelper (MatrixHelper< typename CNT< S >::THerm > &, const TransposeView &)
 MatrixHelper (const MatrixHelper &, const DiagonalView &)
 MatrixHelper (MatrixHelper &, const DiagonalView &)
 MatrixHelper (const MatrixHelper &, const ShallowCopy &)
 MatrixHelper (MatrixHelper &, const ShallowCopy &)
 MatrixHelper (const MatrixHelper &, const DeepCopy &)
 MatrixHelper (const MatrixHelper< typename CNT< S >::TNeg > &, const DeepCopy &)
MatrixHelpercopyAssign (const MatrixHelper &)
MatrixHelpernegatedCopyAssign (const MatrixHelper< typename CNT< S >::TNeg > &)
MatrixHelperreadOnlyViewAssign (const MatrixHelper &)
MatrixHelperwritableViewAssign (MatrixHelper &)
const S * getElt (int i, int j) const
S * updElt (int i, int j)
void sum (S *eltp) const
void colSum (int j, S *eltp) const
void rowSum (int i, S *eltp) const
void addIn (const MatrixHelper &)
void addIn (const MatrixHelper< typename CNT< S >::TNeg > &)
void subIn (const MatrixHelper &)
void subIn (const MatrixHelper< typename CNT< S >::TNeg > &)
void fillWith (const S *eltp)
void copyInByRows (const S *elts)
void fillWithScalar (const StdNumber &)
void scaleBy (const StdNumber &)
scalarSum () const
scalarColSum (int j) const
scalarRowSum (int i) const
void invertInPlace ()
void dump (const char *msg=0) const
template<class SA, class SB>
void matmul (const StdNumber &beta, const StdNumber &alpha, const MatrixHelper< SA > &A, const MatrixHelper< SB > &B)
const S & getScalar (int i, int j) const
S & updScalar (int i, int j)
int nrow () const
int ncol () const
long size () const
void resize (int m, int n)
void resizeKeep (int m, int n)
void lockNRows ()
void lockNCols ()
void lockShape ()
void unlockNRows ()
void unlockNCols ()
void unlockShape ()
void setMatrixStructure (MatrixStructures::Structure)
MatrixStructures::Structure getMatrixStructure () const
void setMatrixShape (MatrixShapes::Shape)
MatrixShapes::Shape getMatrixShape () const
void setMatrixSparsity (MatrixSparseFormats::Sparsity)
MatrixSparseFormats::Sparsity getMatrixSparsity () const
void setMatrixStorage (MatrixStorageFormats::Storage)
MatrixStorageFormats::Storage getMatrixStorage () const
void setMatrixCondition (MatrixConditions::Condition)
MatrixConditions::Condition getMatrixCondition () const
bool hasContiguousData () const
long getContiguousDataLength () const
const S * getContiguousData () const
S * updContiguousData ()
void replaceContiguousData (S *newData, long length, bool takeOwnership)
void replaceContiguousData (const S *newData, long length)
void swapOwnedContiguousData (S *newData, int length, S *&oldData)

Public Attributes

class MatrixHelperRep< S > * rep

Classes

class  DeepCopy
class  DiagonalView
class  ShallowCopy
class  TransposeView

Constructor & Destructor Documentation

~MatrixHelper (  ) 

MatrixHelper ( int  esz,
int  cppEsz 
) [explicit]

MatrixHelper ( int  esz,
int  cppEsz,
int  m,
int  n,
bool  lockNrow = false,
bool  lockNcol = false 
)

MatrixHelper ( int  esz,
int  cppEsz,
int  m,
int  n,
int  leadingDim,
const S *   
)

MatrixHelper ( int  esz,
int  cppEsz,
int  m,
int  n,
int  leadingDim,
S *   
)

MatrixHelper ( const MatrixHelper< S > &  ,
int  i,
int  j,
int  nrow,
int  ncol 
)

MatrixHelper ( MatrixHelper< S > &  ,
int  i,
int  j,
int  nrow,
int  ncol 
)

MatrixHelper ( const MatrixHelper< typename CNT< S >::THerm > &  ,
const TransposeView  
)

MatrixHelper ( MatrixHelper< typename CNT< S >::THerm > &  ,
const TransposeView  
)

MatrixHelper ( const MatrixHelper< S > &  ,
const DiagonalView  
)

MatrixHelper ( MatrixHelper< S > &  ,
const DiagonalView  
)

MatrixHelper ( const MatrixHelper< S > &  ,
const ShallowCopy  
)

MatrixHelper ( MatrixHelper< S > &  ,
const ShallowCopy  
)

MatrixHelper ( const MatrixHelper< S > &  ,
const DeepCopy  
)

MatrixHelper ( const MatrixHelper< typename CNT< S >::TNeg > &  ,
const DeepCopy  
)


Member Function Documentation

void clear (  ) 

MatrixHelper& copyAssign ( const MatrixHelper< S > &   ) 

MatrixHelper& negatedCopyAssign ( const MatrixHelper< typename CNT< S >::TNeg > &   ) 

MatrixHelper& readOnlyViewAssign ( const MatrixHelper< S > &   ) 

MatrixHelper& writableViewAssign ( MatrixHelper< S > &   ) 

const S* getElt ( int  i,
int  j 
) const

S* updElt ( int  i,
int  j 
)

void sum ( S *  eltp  )  const

void colSum ( int  j,
S *  eltp 
) const

void rowSum ( int  i,
S *  eltp 
) const

void addIn ( const MatrixHelper< S > &   ) 

void addIn ( const MatrixHelper< typename CNT< S >::TNeg > &   ) 

void subIn ( const MatrixHelper< S > &   ) 

void subIn ( const MatrixHelper< typename CNT< S >::TNeg > &   ) 

void fillWith ( const S *  eltp  ) 

void copyInByRows ( const S *  elts  ) 

void fillWithScalar ( const StdNumber &   ) 

void scaleBy ( const StdNumber &   ) 

S scalarSum (  )  const

S scalarColSum ( int  j  )  const

S scalarRowSum ( int  i  )  const

void invertInPlace (  ) 

void dump ( const char *  msg = 0  )  const

void matmul ( const StdNumber &  beta,
const StdNumber &  alpha,
const MatrixHelper< SA > &  A,
const MatrixHelper< SB > &  B 
) [inline]

const S& getScalar ( int  i,
int  j 
) const

S& updScalar ( int  i,
int  j 
)

int nrow (  )  const

int ncol (  )  const

long size (  )  const

void resize ( int  m,
int  n 
)

void resizeKeep ( int  m,
int  n 
)

void lockNRows (  ) 

void lockNCols (  ) 

void lockShape (  ) 

void unlockNRows (  ) 

void unlockNCols (  ) 

void unlockShape (  ) 

void setMatrixStructure ( MatrixStructures::Structure   ) 

MatrixStructures::Structure getMatrixStructure (  )  const

void setMatrixShape ( MatrixShapes::Shape   ) 

MatrixShapes::Shape getMatrixShape (  )  const

void setMatrixSparsity ( MatrixSparseFormats::Sparsity   ) 

MatrixSparseFormats::Sparsity getMatrixSparsity (  )  const

void setMatrixStorage ( MatrixStorageFormats::Storage   ) 

MatrixStorageFormats::Storage getMatrixStorage (  )  const

void setMatrixCondition ( MatrixConditions::Condition   ) 

MatrixConditions::Condition getMatrixCondition (  )  const

bool hasContiguousData (  )  const

long getContiguousDataLength (  )  const

const S* getContiguousData (  )  const

S* updContiguousData (  ) 

void replaceContiguousData ( S *  newData,
long  length,
bool  takeOwnership 
)

void replaceContiguousData ( const S *  newData,
long  length 
)

void swapOwnedContiguousData ( S *  newData,
int  length,
S *&  oldData 
)


Member Data Documentation

class MatrixHelperRep< S >* rep


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

Generated on Fri Sep 26 07:44:29 2008 for SimTKcore by  doxygen 1.5.6