#include <Matrix.h>
Collaboration diagram for CxMatrixTem< C >:
Operators | |
template<class CC> | |
CxVector< CC > | operator * (const CxVector< CC > &, const CxMatrixTem< CC > &) |
Multiplication. | |
template<class CC> | |
CxVector< CC > | operator * (const CxMatrixTem< CC > &, const CxVector< CC > &) |
Multiplication. | |
CxMatrixTem< C > & | operator= (const CxMatrixTem< C > &m) |
Normal assigment. | |
C * | operator[] (int i) const |
Subscripting, start with 0. | |
CxMatrixTem< C > | operator * (double val) const |
Multiplication. | |
CxMatrixTem< C > | operator * (const CxMatrixTem< C > &a) const |
Multiplication. | |
CxMatrixTem< C > | operator+ (const CxMatrixTem< C > &a) const |
Addition. | |
CxMatrixTem< C > | operator+ (double val) const |
Addition. | |
Public Member Functions | |
~CxMatrixTem () | |
Copy from vector constructor. | |
Inquiry | |
int | nRow () const |
Number of rows. | |
int | nCol () const |
Number of columns. | |
int | nElem () const |
Number of elements. | |
int | valid () const |
Indicates whether the matrix is valid. | |
C * | dataPtr () const |
Operations | |
CxVector< C > | getRow (long r) const |
CxVector< C > | getCol (long c) const |
CxMatrixTem< C > | setRow (long r, CxVector< C > v, bool makeCopy=false) |
CxMatrixTem< C > | setCol (long c, CxVector< C > v, bool makeCopy=false) |
CxMatrixTem< C > | i () const |
Inverse. | |
CxMatrixTem< C > | t () const |
CxMatrixTem< C > | covariance (CxVector< C > &mean) const |
Calculate covariance matrix. | |
CxMatrixTem< C > | svd (CxVector< C > &W, CxMatrixTem< C > &V) const |
Singular Value Decomposition. | |
CxMatrixTem< C > | klm (int newDim) const |
Karhunen Loeve mapping (PCA) Principal Componant Analysis to reduce matrix to newDim dimensions. | |
Public Attributes | |
int | _nr |
int | _nc |
C * | _data |
Friends | |
class | CxVector< C > |
The dimensions are of arbitrary size.
Definition at line 16 of file Matrix.h.