libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moDMatrix< Real > Class Template Reference

#include <moMathDMatrix.h>

Inheritance diagram for moDMatrix< Real >:
moAbstract

Public Member Functions

 moDMatrix (int iRows=0, int iCols=0)
 
 moDMatrix (int iRows, int iCols, const Real *afData)
 
 moDMatrix (int iRows, int iCols, const Real **aafEntry)
 
 moDMatrix (const moDMatrix &rkM)
 
 ~moDMatrix ()
 
void SetSize (int iRows, int iCols)
 
void GetSize (int &riRows, int &riCols) const
 
int GetRows () const
 
int GetColumns () const
 
int GetQuantity () const
 
 operator const Real * () const
 
 operator Real * ()
 
const Real * operator[] (int iRow) const
 
Real * operator[] (int iRow)
 
void SwapRows (int iRow0, int iRow1)
 
Real operator() (int iRow, int iCol) const
 
Real & operator() (int iRow, int iCol)
 
void SetRow (int iRow, const moDVector< Real > &rkV)
 
moDVector< Real > GetRow (int iRow) const
 
void SetColumn (int iCol, const moDVector< Real > &rkV)
 
moDVector< Real > GetColumn (int iCol) const
 
void SetMatrix (int iRows, int iCols, const Real *afEntry)
 
void SetMatrix (int iRows, int iCols, const Real **aafMatrix)
 
void GetColumnMajor (Real *afCMajor) const
 
moDMatrixoperator= (const moDMatrix &rkM)
 
bool operator== (const moDMatrix &rkM) const
 
bool operator!= (const moDMatrix &rkM) const
 
bool operator< (const moDMatrix &rkM) const
 
bool operator<= (const moDMatrix &rkM) const
 
bool operator> (const moDMatrix &rkM) const
 
bool operator>= (const moDMatrix &rkM) const
 
moDMatrix operator+ (const moDMatrix &rkM) const
 
moDMatrix operator- (const moDMatrix &rkM) const
 
moDMatrix operator* (const moDMatrix &rkM) const
 
moDMatrix operator* (Real fScalar) const
 
moDMatrix operator/ (Real fScalar) const
 
moDMatrix operator- () const
 
moDMatrixoperator+= (const moDMatrix &rkM)
 
moDMatrixoperator-= (const moDMatrix &rkM)
 
moDMatrixoperator*= (Real fScalar)
 
moDMatrixoperator/= (Real fScalar)
 
moDMatrix Transpose () const
 
moDMatrix TransposeTimes (const moDMatrix &rkM) const
 
moDMatrix TimesTranspose (const moDMatrix &rkM) const
 
moDVector< Real > operator* (const moDVector< Real > &rkV) const
 
Real QForm (const moDVector< Real > &rkU, const moDVector< Real > &rkV) const
 
bool GetInverse (moDMatrix< Real > &rkInverse) const
 
- Public Member Functions inherited from moAbstract
 moAbstract ()
 
virtual ~moAbstract ()
 
virtual MOboolean Init ()
 Inicializa el objeto. More...
 
virtual MOboolean Finish ()
 Finaliza el objeto, libera recursos. More...
 
MOboolean Initialized ()
 Pregunta si está inicializado. More...
 

Protected Member Functions

void Allocate (bool bSetToZero)
 
void Deallocate ()
 
int CompareArrays (const moDMatrix &rkM) const
 

Protected Attributes

int m_iRows
 
int m_iCols
 
int m_iQuantity
 
Real * m_afData
 
Real ** m_aafEntry
 

Additional Inherited Members

- Public Attributes inherited from moAbstract
MOboolean m_bInitialized
 Valor de inicialización More...
 
- Static Public Attributes inherited from moAbstract
static moDebugMODebug2 = new moDebug()
 Clase de impresión de errores para depuración More...
 
static moTextHeapMODebug = new moTextHeap()
 Lista de textos. More...
 

Detailed Description

template<class Real>
class moDMatrix< Real >

Definition at line 46 of file moMathDMatrix.h.

Constructor & Destructor Documentation

template<class Real >
moDMatrix< Real >::moDMatrix ( int  iRows = 0,
int  iCols = 0 
)

Definition at line 43 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real >::moDMatrix ( int  iRows,
int  iCols,
const Real *  afData 
)

Definition at line 51 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real >::moDMatrix ( int  iRows,
int  iCols,
const Real **  aafEntry 
)

Definition at line 59 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real >::moDMatrix ( const moDMatrix< Real > &  rkM)

Definition at line 67 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real >::~moDMatrix ( )

Definition at line 78 of file moMathDMatrix.cpp.

Member Function Documentation

template<class Real >
void moDMatrix< Real >::Allocate ( bool  bSetToZero)
protected

Definition at line 84 of file moMathDMatrix.cpp.

template<class Real >
int moDMatrix< Real >::CompareArrays ( const moDMatrix< Real > &  rkM) const
protected

Definition at line 343 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::Deallocate ( )
protected

Definition at line 102 of file moMathDMatrix.cpp.

template<class Real >
moDVector< Real > moDMatrix< Real >::GetColumn ( int  iCol) const

Definition at line 235 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::GetColumnMajor ( Real *  afCMajor) const

Definition at line 298 of file moMathDMatrix.cpp.

template<class Real >
int moDMatrix< Real >::GetColumns ( ) const

Definition at line 143 of file moMathDMatrix.cpp.

template<class Real >
bool moDMatrix< Real >::GetInverse ( moDMatrix< Real > &  rkInverse) const

Definition at line 635 of file moMathDMatrix.cpp.

template<class Real >
int moDMatrix< Real >::GetQuantity ( ) const

Definition at line 149 of file moMathDMatrix.cpp.

template<class Real >
moDVector< Real > moDMatrix< Real >::GetRow ( int  iRow) const

Definition at line 213 of file moMathDMatrix.cpp.

template<class Real >
int moDMatrix< Real >::GetRows ( ) const

Definition at line 137 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::GetSize ( int &  riRows,
int &  riCols 
) const

Definition at line 130 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real >::operator const Real * ( ) const

Definition at line 155 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real >::operator Real * ( )

Definition at line 161 of file moMathDMatrix.cpp.

template<class Real >
bool moDMatrix< Real >::operator!= ( const moDMatrix< Real > &  rkM) const

Definition at line 355 of file moMathDMatrix.cpp.

template<class Real >
Real moDMatrix< Real >::operator() ( int  iRow,
int  iCol 
) const

Definition at line 181 of file moMathDMatrix.cpp.

template<class Real >
Real & moDMatrix< Real >::operator() ( int  iRow,
int  iCol 
)

Definition at line 187 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::operator* ( const moDMatrix< Real > &  rkM) const

Definition at line 407 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::operator* ( Real  fScalar) const

Definition at line 427 of file moMathDMatrix.cpp.

template<class Real >
moDVector< Real > moDMatrix< Real >::operator* ( const moDVector< Real > &  rkV) const

Definition at line 595 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > & moDMatrix< Real >::operator*= ( Real  fScalar)

Definition at line 507 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::operator+ ( const moDMatrix< Real > &  rkM) const

Definition at line 385 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > & moDMatrix< Real >::operator+= ( const moDMatrix< Real > &  rkM)

Definition at line 487 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::operator- ( const moDMatrix< Real > &  rkM) const

Definition at line 396 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::operator- ( ) const

Definition at line 463 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > & moDMatrix< Real >::operator-= ( const moDMatrix< Real > &  rkM)

Definition at line 497 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::operator/ ( Real  fScalar) const

Definition at line 438 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > & moDMatrix< Real >::operator/= ( Real  fScalar)

Definition at line 517 of file moMathDMatrix.cpp.

template<class Real >
bool moDMatrix< Real >::operator< ( const moDMatrix< Real > &  rkM) const

Definition at line 361 of file moMathDMatrix.cpp.

template<class Real >
bool moDMatrix< Real >::operator<= ( const moDMatrix< Real > &  rkM) const

Definition at line 367 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > & moDMatrix< Real >::operator= ( const moDMatrix< Real > &  rkM)

Definition at line 310 of file moMathDMatrix.cpp.

template<class Real >
bool moDMatrix< Real >::operator== ( const moDMatrix< Real > &  rkM) const

Definition at line 349 of file moMathDMatrix.cpp.

template<class Real >
bool moDMatrix< Real >::operator> ( const moDMatrix< Real > &  rkM) const

Definition at line 373 of file moMathDMatrix.cpp.

template<class Real >
bool moDMatrix< Real >::operator>= ( const moDMatrix< Real > &  rkM) const

Definition at line 379 of file moMathDMatrix.cpp.

template<class Real >
const Real * moDMatrix< Real >::operator[] ( int  iRow) const

Definition at line 167 of file moMathDMatrix.cpp.

template<class Real >
Real * moDMatrix< Real >::operator[] ( int  iRow)

Definition at line 174 of file moMathDMatrix.cpp.

template<class Real >
Real moDMatrix< Real >::QForm ( const moDVector< Real > &  rkU,
const moDVector< Real > &  rkV 
) const

Definition at line 627 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::SetColumn ( int  iCol,
const moDVector< Real > &  rkV 
)

Definition at line 225 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::SetMatrix ( int  iRows,
int  iCols,
const Real *  afEntry 
)

Definition at line 247 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::SetMatrix ( int  iRows,
int  iCols,
const Real **  aafMatrix 
)

Definition at line 270 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::SetRow ( int  iRow,
const moDVector< Real > &  rkV 
)

Definition at line 203 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::SetSize ( int  iRows,
int  iCols 
)

Definition at line 109 of file moMathDMatrix.cpp.

template<class Real >
void moDMatrix< Real >::SwapRows ( int  iRow0,
int  iRow1 
)

Definition at line 194 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::TimesTranspose ( const moDMatrix< Real > &  rkM) const

Definition at line 575 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::Transpose ( ) const

Definition at line 541 of file moMathDMatrix.cpp.

template<class Real >
moDMatrix< Real > moDMatrix< Real >::TransposeTimes ( const moDMatrix< Real > &  rkM) const

Definition at line 555 of file moMathDMatrix.cpp.

Member Data Documentation

template<class Real>
Real** moDMatrix< Real >::m_aafEntry
protected

Definition at line 134 of file moMathDMatrix.h.

template<class Real>
Real* moDMatrix< Real >::m_afData
protected

Definition at line 129 of file moMathDMatrix.h.

template<class Real>
int moDMatrix< Real >::m_iCols
protected

Definition at line 126 of file moMathDMatrix.h.

template<class Real>
int moDMatrix< Real >::m_iQuantity
protected

Definition at line 126 of file moMathDMatrix.h.

template<class Real>
int moDMatrix< Real >::m_iRows
protected

Definition at line 126 of file moMathDMatrix.h.


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