#include <MatrixTmplDec.hxx>
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 () |
T | Sum () const |
T | Max () const |
T | 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) |
T | 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) |
Definition at line 34 of file MatrixTmplDec.hxx.
CLAM::MatrixTmpl< T >::MatrixTmpl | ( | ) | [inline] |
Definition at line 30 of file MatrixTmplDef.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, CLAM::MatrixTmpl< T >::mNumRows, and CLAM::MatrixTmpl< T >::mpMatrixBuffer.
CLAM::MatrixTmpl< T >::MatrixTmpl | ( | unsigned int | dim1, | |
unsigned int | dim2 | |||
) | [inline] |
Definition at line 50 of file MatrixTmplDef.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, CLAM::MatrixTmpl< T >::mNumRows, and CLAM::MatrixTmpl< T >::mpMatrixBuffer.
CLAM::MatrixTmpl< T >::MatrixTmpl | ( | const MatrixTmpl< T > & | originalMatrix | ) | [inline] |
Definition at line 59 of file MatrixTmplDef.hxx.
References CLAM::MatrixTmpl< T >::GetNumElements(), and CLAM::MatrixTmpl< T >::mpMatrixBuffer.
CLAM::MatrixTmpl< T >::~MatrixTmpl | ( | ) | [inline] |
Definition at line 39 of file MatrixTmplDef.hxx.
References CLAM::MatrixTmpl< T >::mpMatrixBuffer, and NULL.
void CLAM::MatrixTmpl< T >::Apply | ( | T(*)(T, int) | f, | |
int | parameter | |||
) | [inline] |
Definition at line 290 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
void CLAM::MatrixTmpl< T >::Apply | ( | T(*)(T) | f | ) | [inline] |
Definition at line 283 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
T CLAM::MatrixTmpl< T >::GetAt | ( | unsigned int | iPosition, | |
unsigned int | jPosition | |||
) | const [inline] |
Definition at line 239 of file MatrixTmplDec.hxx.
References CLAM_ASSERT, CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Array<T>& CLAM::MatrixTmpl< T >::GetBuffer | ( | ) | [inline] |
Definition at line 45 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer().
const Array<T>& CLAM::MatrixTmpl< T >::GetBuffer | ( | ) | const [inline] |
Definition at line 44 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer().
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetDelColumn | ( | unsigned int | column | ) | const [inline] |
Definition at line 175 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Referenced by CLAM::MatrixTmpl< T >::GetSubmatrix(), and CLAM::MatrixTmpl< T >::Submatrix().
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetDelRow | ( | unsigned int | row | ) | const [inline] |
Definition at line 157 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Referenced by CLAM::MatrixTmpl< T >::GetSubmatrix(), and CLAM::MatrixTmpl< T >::Submatrix().
float CLAM::MatrixTmpl< T >::GetDet | ( | ) | const [inline] |
Definition at line 79 of file MatrixTmplDec.hxx.
References CLAM_ASSERT, CLAM::MatrixTmpl< T >::GetSubmatrix(), CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Referenced by CLAM::MatrixTmpl< T >::GetInverse(), and CLAM::MatrixTmpl< T >::Invert().
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetInverse | ( | ) | const [inline] |
Definition at line 144 of file MatrixTmplDec.hxx.
References CLAM_ASSERT, CLAM::MatrixTmpl< T >::GetDet(), CLAM::MatrixTmpl< T >::GetSubmatrix(), CLAM::MatrixTmpl< T >::GetTrans(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
int CLAM::MatrixTmpl< T >::GetNumColumns | ( | ) | const [inline] |
Definition at line 42 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns.
int CLAM::MatrixTmpl< T >::GetNumElements | ( | ) | const [inline] |
Definition at line 43 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Referenced by CLAM::MatrixTmpl< T >::MatrixTmpl().
int CLAM::MatrixTmpl< T >::GetNumRows | ( | ) | const [inline] |
Definition at line 41 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumRows.
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetSubmatrix | ( | unsigned int | i, | |
unsigned int | j | |||
) | const [inline] |
Definition at line 194 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::GetDelColumn(), and CLAM::MatrixTmpl< T >::GetDelRow().
Referenced by CLAM::MatrixTmpl< T >::GetDet(), CLAM::MatrixTmpl< T >::GetInverse(), and CLAM::MatrixTmpl< T >::Invert().
MatrixTmpl<T> CLAM::MatrixTmpl< T >::GetTrans | ( | ) | [inline] |
Definition at line 97 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Referenced by CLAM::MatrixTmpl< T >::GetInverse(), and CLAM::MatrixTmpl< T >::Invert().
void CLAM::MatrixTmpl< T >::Invert | ( | ) | [inline] |
Definition at line 127 of file MatrixTmplDec.hxx.
References CLAM_ASSERT, CLAM::MatrixTmpl< T >::GetDet(), CLAM::MatrixTmpl< T >::GetSubmatrix(), CLAM::MatrixTmpl< T >::GetTrans(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Array<T>& CLAM::MatrixTmpl< T >::MatrixBuffer | ( | ) | const [inline] |
Definition at line 448 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mpMatrixBuffer.
Referenced by CLAM::MatrixTmpl< T >::GetAt(), CLAM::MatrixTmpl< T >::GetBuffer(), CLAM::MatrixTmpl< T >::GetDelColumn(), CLAM::MatrixTmpl< T >::GetDelRow(), CLAM::MatrixTmpl< T >::GetDet(), CLAM::MatrixTmpl< T >::Max(), CLAM::MatrixTmpl< T >::Min(), CLAM::MatrixTmpl< T >::operator()(), CLAM::MatrixTmpl< T >::operator+=(), CLAM::MatrixTmpl< T >::operator-=(), CLAM::MatrixTmpl< T >::operator=(), CLAM::MatrixTmpl< T >::SetAt(), and CLAM::MatrixTmpl< T >::Sum().
T CLAM::MatrixTmpl< T >::Max | ( | ) | const [inline] |
Definition at line 55 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
float CLAM::MatrixTmpl< T >::Mean | ( | ) | const [inline] |
Definition at line 73 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, CLAM::MatrixTmpl< T >::mNumRows, and CLAM::MatrixTmpl< T >::Sum().
T CLAM::MatrixTmpl< T >::Min | ( | ) | const [inline] |
Definition at line 64 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
T& CLAM::MatrixTmpl< T >::operator() | ( | unsigned int | iPosition, | |
unsigned int | jPosition | |||
) | const [inline] |
Definition at line 316 of file MatrixTmplDec.hxx.
References CLAM_ASSERT, CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
const MatrixTmpl<T>& CLAM::MatrixTmpl< T >::operator+= | ( | const MatrixTmpl< T > & | newMatrix | ) | [inline] |
Definition at line 347 of file MatrixTmplDec.hxx.
References CLAM_ASSERT, CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
const MatrixTmpl<T>& CLAM::MatrixTmpl< T >::operator-= | ( | const MatrixTmpl< T > & | newMatrix | ) | [inline] |
Definition at line 357 of file MatrixTmplDec.hxx.
References CLAM_ASSERT, CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
const MatrixTmpl<T>& CLAM::MatrixTmpl< T >::operator= | ( | const T | element | ) | [inline] |
Definition at line 339 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
const MatrixTmpl<T>& CLAM::MatrixTmpl< T >::operator= | ( | const MatrixTmpl< T > & | originalMatrix | ) | [inline] |
Definition at line 329 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, CLAM::MatrixTmpl< T >::mNumRows, and CLAM::MatrixTmpl< T >::mpMatrixBuffer.
void CLAM::MatrixTmpl< T >::Print | ( | void | ) | const [inline] |
Definition at line 67 of file MatrixTmplDef.hxx.
References L, CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
void CLAM::MatrixTmpl< T >::Reset | ( | void | ) | [inline] |
Definition at line 116 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
void CLAM::MatrixTmpl< T >::SetAt | ( | unsigned int | iPosition, | |
unsigned int | jPosition, | |||
T | element | |||
) | [inline] |
Definition at line 225 of file MatrixTmplDec.hxx.
References CLAM_ASSERT, CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Referenced by CLAM::Segmentator::UnwrapDescriptors().
void CLAM::MatrixTmpl< T >::Submatrix | ( | unsigned int | i, | |
unsigned int | j | |||
) | [inline] |
Definition at line 202 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::GetDelColumn(), and CLAM::MatrixTmpl< T >::GetDelRow().
T CLAM::MatrixTmpl< T >::Sum | ( | ) | const [inline] |
Definition at line 47 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
Referenced by CLAM::MatrixTmpl< T >::Mean().
void CLAM::MatrixTmpl< T >::Trans | ( | ) | [inline] |
Definition at line 107 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
MatrixTmpl<T> AbsMatrix | ( | const MatrixTmpl< T > & | m | ) | [friend] |
Definition at line 306 of file MatrixTmplDec.hxx.
MatrixTmpl<T> GetApply | ( | const MatrixTmpl< T > & | m, | |
double | fdouble | |||
) | [friend] |
Definition at line 297 of file MatrixTmplDec.hxx.
MatrixTmpl<T> GetColumn | ( | unsigned int | column, | |
MatrixTmpl< T > & | m | |||
) | [friend] |
Definition at line 254 of file MatrixTmplDec.hxx.
MatrixTmpl<T> GetRow | ( | unsigned int | row, | |
MatrixTmpl< T > & | m | |||
) | [friend] |
Definition at line 268 of file MatrixTmplDec.hxx.
MatrixTmpl<T> operator* | ( | const MatrixTmpl< T > & | m1, | |
const MatrixTmpl< T > & | m2 | |||
) | [friend] |
Definition at line 417 of file MatrixTmplDec.hxx.
MatrixTmpl<T> operator* | ( | T | scalar, | |
const MatrixTmpl< T > & | m | |||
) | [friend] |
Definition at line 409 of file MatrixTmplDec.hxx.
MatrixTmpl<T> operator+ | ( | const MatrixTmpl< T > & | m1, | |
const T & | element | |||
) | [friend] |
Definition at line 379 of file MatrixTmplDec.hxx.
MatrixTmpl<T> operator+ | ( | MatrixTmpl< T > & | m1, | |
MatrixTmpl< T > & | m2 | |||
) | [friend] |
Definition at line 367 of file MatrixTmplDec.hxx.
MatrixTmpl<T> operator- | ( | MatrixTmpl< T > & | m1, | |
const T | element | |||
) | [friend] |
Definition at line 400 of file MatrixTmplDec.hxx.
MatrixTmpl<T> operator- | ( | MatrixTmpl< T > & | m1, | |
MatrixTmpl< T > & | m2 | |||
) | [friend] |
Definition at line 388 of file MatrixTmplDec.hxx.
MatrixTmpl<T> operator/ | ( | const MatrixTmpl< T > & | m, | |
T | scalar | |||
) | [friend] |
Definition at line 430 of file MatrixTmplDec.hxx.
bool operator== | ( | const MatrixTmpl< T > & | m1, | |
const MatrixTmpl< T > & | m2 | |||
) | [friend] |
Definition at line 438 of file MatrixTmplDec.hxx.
unsigned int CLAM::MatrixTmpl< T >::mNumColumns [protected] |
Definition at line 454 of file MatrixTmplDec.hxx.
Referenced by CLAM::MatrixTmpl< T >::Apply(), CLAM::MatrixTmpl< T >::GetAt(), CLAM::MatrixTmpl< T >::GetDelColumn(), CLAM::MatrixTmpl< T >::GetDelRow(), CLAM::MatrixTmpl< T >::GetDet(), CLAM::MatrixTmpl< T >::GetInverse(), CLAM::MatrixTmpl< T >::GetNumColumns(), CLAM::MatrixTmpl< T >::GetNumElements(), CLAM::MatrixTmpl< T >::GetTrans(), CLAM::MatrixTmpl< T >::Invert(), CLAM::MatrixTmpl< T >::MatrixTmpl(), CLAM::MatrixTmpl< T >::Max(), CLAM::MatrixTmpl< T >::Mean(), CLAM::MatrixTmpl< T >::Min(), CLAM::MatrixTmpl< T >::operator()(), CLAM::MatrixTmpl< T >::operator+=(), CLAM::MatrixTmpl< T >::operator-=(), CLAM::MatrixTmpl< T >::operator=(), CLAM::MatrixTmpl< T >::Print(), CLAM::MatrixTmpl< T >::Reset(), CLAM::MatrixTmpl< T >::SetAt(), CLAM::MatrixTmpl< T >::Sum(), and CLAM::MatrixTmpl< T >::Trans().
unsigned int CLAM::MatrixTmpl< T >::mNumRows [protected] |
Definition at line 453 of file MatrixTmplDec.hxx.
Referenced by CLAM::MatrixTmpl< T >::Apply(), CLAM::MatrixTmpl< T >::GetAt(), CLAM::MatrixTmpl< T >::GetDelColumn(), CLAM::MatrixTmpl< T >::GetDelRow(), CLAM::MatrixTmpl< T >::GetDet(), CLAM::MatrixTmpl< T >::GetInverse(), CLAM::MatrixTmpl< T >::GetNumElements(), CLAM::MatrixTmpl< T >::GetNumRows(), CLAM::MatrixTmpl< T >::GetTrans(), CLAM::MatrixTmpl< T >::Invert(), CLAM::MatrixTmpl< T >::MatrixTmpl(), CLAM::MatrixTmpl< T >::Max(), CLAM::MatrixTmpl< T >::Mean(), CLAM::MatrixTmpl< T >::Min(), CLAM::MatrixTmpl< T >::operator()(), CLAM::MatrixTmpl< T >::operator+=(), CLAM::MatrixTmpl< T >::operator-=(), CLAM::MatrixTmpl< T >::operator=(), CLAM::MatrixTmpl< T >::Print(), CLAM::MatrixTmpl< T >::Reset(), CLAM::MatrixTmpl< T >::SetAt(), CLAM::MatrixTmpl< T >::Sum(), and CLAM::MatrixTmpl< T >::Trans().
Array<T>* CLAM::MatrixTmpl< T >::mpMatrixBuffer [protected] |
Definition at line 457 of file MatrixTmplDec.hxx.
Referenced by CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::MatrixTmpl(), CLAM::MatrixTmpl< T >::operator=(), and CLAM::MatrixTmpl< T >::~MatrixTmpl().