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

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 addIn ( const MatrixHelper< typename CNT< S >::TNeg > &   ) 

void addIn ( const MatrixHelper< S > &   ) 

void clear (  ) 

void colSum ( int  j,
S *  eltp 
) const

MatrixHelper& copyAssign ( const MatrixHelper< S > &   ) 

void copyInByRows ( const S *  elts  ) 

void dump ( const char *  msg = 0  )  const

void fillWith ( const S *  eltp  ) 

void fillWithScalar ( const StdNumber &   ) 

const S* getContiguousData (  )  const

long getContiguousDataLength (  )  const

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

MatrixConditions::Condition getMatrixCondition (  )  const

MatrixShapes::Shape getMatrixShape (  )  const

MatrixSparseFormats::Sparsity getMatrixSparsity (  )  const

MatrixStorageFormats::Storage getMatrixStorage (  )  const

MatrixStructures::Structure getMatrixStructure (  )  const

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

bool hasContiguousData (  )  const

void invertInPlace (  ) 

void lockNCols (  ) 

void lockNRows (  ) 

void lockShape (  ) 

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

int ncol (  )  const

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

int nrow (  )  const

MatrixHelper& readOnlyViewAssign ( const MatrixHelper< S > &   ) 

void replaceContiguousData ( const S *  newData,
long  length 
)

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

void resize ( int  m,
int  n 
)

void resizeKeep ( int  m,
int  n 
)

void rowSum ( int  i,
S *  eltp 
) const

S scalarColSum ( int  j  )  const

S scalarRowSum ( int  i  )  const

S scalarSum (  )  const

void scaleBy ( const StdNumber &   ) 

void setMatrixCondition ( MatrixConditions::Condition   ) 

void setMatrixShape ( MatrixShapes::Shape   ) 

void setMatrixSparsity ( MatrixSparseFormats::Sparsity   ) 

void setMatrixStorage ( MatrixStorageFormats::Storage   ) 

void setMatrixStructure ( MatrixStructures::Structure   ) 

long size (  )  const

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

void subIn ( const MatrixHelper< S > &   ) 

void sum ( S *  eltp  )  const

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

void unlockNCols (  ) 

void unlockNRows (  ) 

void unlockShape (  ) 

S* updContiguousData (  ) 

S* updElt ( int  i,
int  j 
)

S& updScalar ( int  i,
int  j 
)

MatrixHelper& writableViewAssign ( MatrixHelper< S > &   ) 


Member Data Documentation

class MatrixHelperRep< S >* rep


The documentation for this class was generated from the following file:
Generated on Thu Feb 28 01:34:35 2008 for SimTKcommon by  doxygen 1.4.7