My Project
|
Public Member Functions | |
Matrix () | |
Matrix (const Matrix< type > &mat) | |
Matrix (unsigned nRow, unsigned nCol) | |
virtual | ~Matrix () |
Vector< type > & | operator[] (unsigned iRow) |
Matrix< type > | operator* (Matrix< type > &mat) |
void | operator= (const Matrix< type > &mat) |
template<class T > | |
Matrix< type > | operator* (T) |
template<class T > | |
Matrix< type > | operator/ (T) |
template<class T > | |
Matrix< type > | operator+ (T) |
template<class T > | |
Matrix< type > | operator- (T) |
Vector< type > | operator* (Vector< type > &vec) |
Matrix< type > | reduce (unsigned iRow, unsigned iCol) |
Matrix< type > | transpose () |
Matrix< type > | trans () |
Matrix< type > | adjoint () |
Matrix< type > | adj () |
Matrix< type > | inverse () |
Matrix< type > | inv () |
type | determinant () |
type | det () |
type | determinant (unsigned i, unsigned j) |
type | det (unsigned i, unsigned j) |
type | trace () |
type | cofactor (unsigned iRow, unsigned iCol) |
Friends | |
Vector< type > | gcp::util::operator* (Vector< type > &vec, Matrix< type > &mat) |
std::ostream & | gcp::util::operator<< (std::ostream &os, Matrix< type > &mat) |
std::ostringstream & | gcp::util::operator<< (std::ostringstream &os, Matrix< type > &mat) |
gcp::util::Matrix< type >::Matrix | ( | ) |
Constructor.
Constructor
gcp::util::Matrix< type >::Matrix | ( | const Matrix< type > & | mat | ) |
Copy constructor.
Copy constructor
gcp::util::Matrix< type >::Matrix | ( | unsigned | nRow, |
unsigned | nCol | ||
) |
Constructor.
Constructor
|
virtual |
Destructor.
Destructor
Matrix< type > gcp::util::Matrix< type >::adjoint | ( | ) |
Define an adjoint operator
Adjoint of a matrix
type gcp::util::Matrix< type >::cofactor | ( | unsigned | i, |
unsigned | j | ||
) |
Return the cofactor of an element
Cofactor of a matrix element
type gcp::util::Matrix< type >::det | ( | ) |
Determinant of a matrix
type gcp::util::Matrix< type >::det | ( | unsigned | i, |
unsigned | j | ||
) |
Determinant of a matrix formed by deleting row i and column j
type gcp::util::Matrix< type >::determinant | ( | ) |
Get the determinant of a matrix
Determinant of a matrix
type gcp::util::Matrix< type >::determinant | ( | unsigned | i, |
unsigned | j | ||
) |
Determinant of a matrix formed by deleting row i and column j
Matrix< type > gcp::util::Matrix< type >::inverse | ( | ) |
Define an inverse operator
Inverse of a matrix
Matrix< type > gcp::util::Matrix< type >::operator* | ( | Matrix< type > & | mat | ) |
Define a matrix multiplication operator
Define multiplication operators
Matrix< type > gcp::util::Matrix< type >::operator* | ( | T | fac | ) |
Define matrix multiplication operators
Vector< type > gcp::util::Matrix< type >::operator* | ( | Vector< type > & | vec | ) |
Define a vector right-multiplication operator
Matrix< type > gcp::util::Matrix< type >::operator+ | ( | T | fac | ) |
Define a matrix addition operator
Matrix< type > gcp::util::Matrix< type >::operator- | ( | T | fac | ) |
Define a matrix subtraction operator
Matrix< type > gcp::util::Matrix< type >::operator/ | ( | T | fac | ) |
Define a matrix division operator
void gcp::util::Matrix< type >::operator= | ( | const Matrix< type > & | mat | ) |
Assignment operator
Vector< type > & gcp::util::Matrix< type >::operator[] | ( | unsigned | iRow | ) |
Define an operator for accessing rows of the matrix.
Index operator
Matrix< type > gcp::util::Matrix< type >::reduce | ( | unsigned | i, |
unsigned | j | ||
) |
Define a reduction operator
Return the reduced matrix of the specified element
type gcp::util::Matrix< type >::trace | ( | ) |
Get the trace of a matrix (sum of the diagonals)
Trace of a matrix
Matrix< type > gcp::util::Matrix< type >::transpose | ( | ) |
Define a transpose operator
Transpose of a matrix
|
friend |
A left-multiplication operator
|
friend |
Declare a matrix printing method
|
friend |
Declare a matrix printing method