CLAM-Development  1.4.0
Public Member Functions | Protected Attributes | Friends
CLAM::MatrixTmpl< T > Class Template Reference

#include <MatrixTmplDec.hxx>

List of all members.

Public Member Functions

 MatrixTmpl ()
 MatrixTmpl (unsigned int dim1, unsigned int dim2)
 MatrixTmpl (const MatrixTmpl< T > &originalMatrix)
 ~MatrixTmpl ()
int GetNumRows () const
int GetNumColumns () const
int GetNumElements () const
const Array< T > & GetBuffer () const
Array< T > & GetBuffer ()
Sum () const
Max () const
Min () const
float Mean () const
void Print () const
float GetDet () const
MatrixTmpl< T > GetTrans ()
void Trans ()
void Reset ()
void Invert ()
MatrixTmpl< T > GetInverse () const
MatrixTmpl< T > GetDelRow (unsigned int row) const
MatrixTmpl< T > GetDelColumn (unsigned int column) const
MatrixTmpl< T > GetSubmatrix (unsigned int i, unsigned int j) const
void Submatrix (unsigned int i, unsigned int j)
void SetAt (unsigned int iPosition, unsigned int jPosition, T element)
GetAt (unsigned int iPosition, unsigned int jPosition) const
void Apply (T(*f)(T))
void Apply (T(*f)(T, int), int parameter)
T & operator() (unsigned int iPosition, unsigned int jPosition) const
const MatrixTmpl< T > & operator= (const MatrixTmpl< T > &originalMatrix)
const MatrixTmpl< T > & operator= (const T element)
const MatrixTmpl< T > & operator+= (const MatrixTmpl< T > &newMatrix)
const MatrixTmpl< T > & operator-= (const MatrixTmpl< T > &newMatrix)
Array< T > & MatrixBuffer () const

Protected Attributes

unsigned int mNumRows
unsigned int mNumColumns
Array< T > * mpMatrixBuffer

Friends

MatrixTmpl< T > GetColumn (unsigned int column, MatrixTmpl< T > &m)
MatrixTmpl< T > GetRow (unsigned int row, MatrixTmpl< T > &m)
MatrixTmpl< T > GetApply (const MatrixTmpl< T > &m, double f(double))
MatrixTmpl< T > AbsMatrix (const MatrixTmpl< T > &m)
MatrixTmpl< T > operator+ (MatrixTmpl< T > &m1, MatrixTmpl< T > &m2)
MatrixTmpl< T > operator+ (const MatrixTmpl< T > &m1, const T &element)
MatrixTmpl< T > operator- (MatrixTmpl< T > &m1, MatrixTmpl< T > &m2)
MatrixTmpl< T > operator- (MatrixTmpl< T > &m1, const T element)
MatrixTmpl< T > operator* (T scalar, const MatrixTmpl< T > &m)
MatrixTmpl< T > operator* (const MatrixTmpl< T > &m1, const MatrixTmpl< T > &m2)
MatrixTmpl< T > operator/ (const MatrixTmpl< T > &m, T scalar)
bool operator== (const MatrixTmpl< T > &m1, const MatrixTmpl< T > &m2)

Detailed Description

template<class T>
class CLAM::MatrixTmpl< T >

Definition at line 34 of file MatrixTmplDec.hxx.


Constructor & Destructor Documentation

template<class T >
CLAM::MatrixTmpl< T >::MatrixTmpl ( )

Definition at line 30 of file MatrixTmplDef.hxx.

References CLAM::Array< T >::SetSize().

template<class T >
CLAM::MatrixTmpl< T >::MatrixTmpl ( unsigned int  dim1,
unsigned int  dim2 
)

Definition at line 50 of file MatrixTmplDef.hxx.

References CLAM::Array< T >::SetSize().

template<class T >
CLAM::MatrixTmpl< T >::MatrixTmpl ( const MatrixTmpl< T > &  originalMatrix)

Definition at line 59 of file MatrixTmplDef.hxx.

References CLAM::MatrixTmpl< T >::GetNumElements().

template<class T >
CLAM::MatrixTmpl< T >::~MatrixTmpl ( )

Definition at line 39 of file MatrixTmplDef.hxx.

References NULL.


Member Function Documentation

template<class T>
void CLAM::MatrixTmpl< T >::Apply ( T(*)(T)  f)
inline
template<class T>
void CLAM::MatrixTmpl< T >::Apply ( T(*)(T, int f,
int  parameter 
)
inline
template<class T>
T CLAM::MatrixTmpl< T >::GetAt ( unsigned int  iPosition,
unsigned int  jPosition 
) const
inline
template<class T>
const Array<T>& CLAM::MatrixTmpl< T >::GetBuffer ( ) const
inline

Definition at line 44 of file MatrixTmplDec.hxx.

References CLAM::MatrixTmpl< T >::MatrixBuffer().

template<class T>
Array<T>& CLAM::MatrixTmpl< T >::GetBuffer ( )
inline

Definition at line 45 of file MatrixTmplDec.hxx.

References CLAM::MatrixTmpl< T >::MatrixBuffer().

template<class T>
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetDelColumn ( unsigned int  column) const
inline
template<class T>
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetDelRow ( unsigned int  row) const
inline
template<class T>
float CLAM::MatrixTmpl< T >::GetDet ( ) const
inline
template<class T>
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetInverse ( ) const
inline
template<class T>
int CLAM::MatrixTmpl< T >::GetNumColumns ( ) const
inline

Definition at line 42 of file MatrixTmplDec.hxx.

References CLAM::MatrixTmpl< T >::mNumColumns.

template<class T>
int CLAM::MatrixTmpl< T >::GetNumElements ( ) const
inline
template<class T>
int CLAM::MatrixTmpl< T >::GetNumRows ( ) const
inline

Definition at line 41 of file MatrixTmplDec.hxx.

References CLAM::MatrixTmpl< T >::mNumRows.

template<class T>
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetSubmatrix ( unsigned int  i,
unsigned int  j 
) const
inline
template<class T>
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetTrans ( )
inline
template<class T>
void CLAM::MatrixTmpl< T >::Invert ( )
inline
template<class T>
Array<T>& CLAM::MatrixTmpl< T >::MatrixBuffer ( ) const
inline
template<class T>
T CLAM::MatrixTmpl< T >::Max ( ) const
inline
template<class T>
float CLAM::MatrixTmpl< T >::Mean ( ) const
inline
template<class T>
T CLAM::MatrixTmpl< T >::Min ( ) const
inline
template<class T>
T& CLAM::MatrixTmpl< T >::operator() ( unsigned int  iPosition,
unsigned int  jPosition 
) const
inline
template<class T>
const MatrixTmpl<T>& CLAM::MatrixTmpl< T >::operator+= ( const MatrixTmpl< T > &  newMatrix)
inline
template<class T>
const MatrixTmpl<T>& CLAM::MatrixTmpl< T >::operator-= ( const MatrixTmpl< T > &  newMatrix)
inline
template<class T>
const MatrixTmpl<T>& CLAM::MatrixTmpl< T >::operator= ( const MatrixTmpl< T > &  originalMatrix)
inline
template<class T>
const MatrixTmpl<T>& CLAM::MatrixTmpl< T >::operator= ( const T  element)
inline
template<class T >
void CLAM::MatrixTmpl< T >::Print ( void  ) const

Definition at line 67 of file MatrixTmplDef.hxx.

References L.

template<class T>
void CLAM::MatrixTmpl< T >::Reset ( void  )
inline
template<class T>
void CLAM::MatrixTmpl< T >::SetAt ( unsigned int  iPosition,
unsigned int  jPosition,
element 
)
inline
template<class T>
void CLAM::MatrixTmpl< T >::Submatrix ( unsigned int  i,
unsigned int  j 
)
inline
template<class T>
T CLAM::MatrixTmpl< T >::Sum ( ) const
inline
template<class T>
void CLAM::MatrixTmpl< T >::Trans ( )
inline

Friends And Related Function Documentation

template<class T>
MatrixTmpl<T> AbsMatrix ( const MatrixTmpl< T > &  m)
friend

Definition at line 306 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> GetApply ( const MatrixTmpl< T > &  m,
double   fdouble 
)
friend

Definition at line 297 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> GetColumn ( unsigned int  column,
MatrixTmpl< T > &  m 
)
friend

Definition at line 254 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> GetRow ( unsigned int  row,
MatrixTmpl< T > &  m 
)
friend

Definition at line 268 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> operator* ( scalar,
const MatrixTmpl< T > &  m 
)
friend

Definition at line 409 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> operator* ( const MatrixTmpl< T > &  m1,
const MatrixTmpl< T > &  m2 
)
friend

Definition at line 417 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> operator+ ( MatrixTmpl< T > &  m1,
MatrixTmpl< T > &  m2 
)
friend

Definition at line 367 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> operator+ ( const MatrixTmpl< T > &  m1,
const T &  element 
)
friend

Definition at line 379 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> operator- ( MatrixTmpl< T > &  m1,
MatrixTmpl< T > &  m2 
)
friend

Definition at line 388 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> operator- ( MatrixTmpl< T > &  m1,
const T  element 
)
friend

Definition at line 400 of file MatrixTmplDec.hxx.

template<class T>
MatrixTmpl<T> operator/ ( const MatrixTmpl< T > &  m,
scalar 
)
friend

Definition at line 430 of file MatrixTmplDec.hxx.

template<class T>
bool operator== ( const MatrixTmpl< T > &  m1,
const MatrixTmpl< T > &  m2 
)
friend

Definition at line 438 of file MatrixTmplDec.hxx.


Member Data Documentation

template<class T>
unsigned int CLAM::MatrixTmpl< T >::mNumColumns
protected
template<class T>
unsigned int CLAM::MatrixTmpl< T >::mNumRows
protected
template<class T>
Array<T>* CLAM::MatrixTmpl< T >::mpMatrixBuffer
protected

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