CLAM-Development
1.4.0
|
#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 | ( | ) |
Definition at line 30 of file MatrixTmplDef.hxx.
References CLAM::Array< T >::SetSize().
CLAM::MatrixTmpl< T >::MatrixTmpl | ( | unsigned int | dim1, |
unsigned int | dim2 | ||
) |
Definition at line 50 of file MatrixTmplDef.hxx.
References CLAM::Array< T >::SetSize().
CLAM::MatrixTmpl< T >::MatrixTmpl | ( | const MatrixTmpl< T > & | originalMatrix | ) |
Definition at line 59 of file MatrixTmplDef.hxx.
References CLAM::MatrixTmpl< T >::GetNumElements().
CLAM::MatrixTmpl< T >::~MatrixTmpl | ( | ) |
Definition at line 39 of file MatrixTmplDef.hxx.
References NULL.
|
inline |
Definition at line 283 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
|
inline |
Definition at line 290 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
|
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.
|
inline |
Definition at line 44 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer().
|
inline |
Definition at line 45 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer().
|
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().
|
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().
|
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().
|
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.
|
inline |
Definition at line 42 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns.
|
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().
|
inline |
Definition at line 41 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumRows.
|
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().
|
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().
|
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.
|
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().
|
inline |
Definition at line 55 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
|
inline |
Definition at line 73 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, CLAM::MatrixTmpl< T >::mNumRows, and CLAM::MatrixTmpl< T >::Sum().
|
inline |
Definition at line 64 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
|
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.
|
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.
|
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.
|
inline |
Definition at line 329 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, CLAM::MatrixTmpl< T >::mNumRows, and CLAM::MatrixTmpl< T >::mpMatrixBuffer.
|
inline |
Definition at line 339 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::MatrixBuffer(), CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
void CLAM::MatrixTmpl< T >::Print | ( | void | ) | const |
Definition at line 67 of file MatrixTmplDef.hxx.
References L.
|
inline |
Definition at line 116 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
|
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().
|
inline |
Definition at line 202 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::GetDelColumn(), and CLAM::MatrixTmpl< T >::GetDelRow().
|
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().
|
inline |
Definition at line 107 of file MatrixTmplDec.hxx.
References CLAM::MatrixTmpl< T >::mNumColumns, and CLAM::MatrixTmpl< T >::mNumRows.
|
friend |
Definition at line 306 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 297 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 254 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 268 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 409 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 417 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 367 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 379 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 388 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 400 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 430 of file MatrixTmplDec.hxx.
|
friend |
Definition at line 438 of file MatrixTmplDec.hxx.
|
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 >::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 >::Reset(), CLAM::MatrixTmpl< T >::SetAt(), CLAM::MatrixTmpl< T >::Sum(), and CLAM::MatrixTmpl< T >::Trans().
|
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 >::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 >::Reset(), CLAM::MatrixTmpl< T >::SetAt(), CLAM::MatrixTmpl< T >::Sum(), and CLAM::MatrixTmpl< T >::Trans().
|
protected |
Definition at line 457 of file MatrixTmplDec.hxx.
Referenced by CLAM::MatrixTmpl< T >::MatrixBuffer(), and CLAM::MatrixTmpl< T >::operator=().