My Project
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros Pages
gcp::util::Matrix< type > Class Template Reference

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)
 

Constructor & Destructor Documentation

template<class type >
gcp::util::Matrix< type >::Matrix ( )

Constructor.

Constructor

template<class type >
gcp::util::Matrix< type >::Matrix ( const Matrix< type > &  mat)

Copy constructor.

Copy constructor

template<class type >
gcp::util::Matrix< type >::Matrix ( unsigned  nRow,
unsigned  nCol 
)

Constructor.

Constructor

template<class type >
gcp::util::Matrix< type >::~Matrix ( )
virtual

Destructor.

Destructor

Member Function Documentation

template<class type >
Matrix< type > gcp::util::Matrix< type >::adjoint ( )

Define an adjoint operator

Adjoint of a matrix

template<class type >
type gcp::util::Matrix< type >::cofactor ( unsigned  i,
unsigned  j 
)

Return the cofactor of an element

Cofactor of a matrix element

template<class type >
type gcp::util::Matrix< type >::det ( )

Determinant of a matrix

template<class type >
type gcp::util::Matrix< type >::det ( unsigned  i,
unsigned  j 
)

Determinant of a matrix formed by deleting row i and column j

template<class type >
type gcp::util::Matrix< type >::determinant ( )

Get the determinant of a matrix

Determinant of a matrix

template<class type >
type gcp::util::Matrix< type >::determinant ( unsigned  i,
unsigned  j 
)

Determinant of a matrix formed by deleting row i and column j

template<class type >
Matrix< type > gcp::util::Matrix< type >::inverse ( )

Define an inverse operator

Inverse of a matrix

template<class type >
Matrix< type > gcp::util::Matrix< type >::operator* ( Matrix< type > &  mat)

Define a matrix multiplication operator

Define multiplication operators

template<class type >
template<class T >
Matrix< type > gcp::util::Matrix< type >::operator* ( fac)

Define matrix multiplication operators

template<class type >
Vector< type > gcp::util::Matrix< type >::operator* ( Vector< type > &  vec)

Define a vector right-multiplication operator

template<class type >
template<class T >
Matrix< type > gcp::util::Matrix< type >::operator+ ( fac)

Define a matrix addition operator

template<class type >
template<class T >
Matrix< type > gcp::util::Matrix< type >::operator- ( fac)

Define a matrix subtraction operator

template<class type >
template<class T >
Matrix< type > gcp::util::Matrix< type >::operator/ ( fac)

Define a matrix division operator

template<class type >
void gcp::util::Matrix< type >::operator= ( const Matrix< type > &  mat)

Assignment operator

template<class type >
Vector< type > & gcp::util::Matrix< type >::operator[] ( unsigned  iRow)

Define an operator for accessing rows of the matrix.

Index operator

template<class type >
Matrix< type > gcp::util::Matrix< type >::reduce ( unsigned  i,
unsigned  j 
)

Define a reduction operator

Return the reduced matrix of the specified element

template<class type >
type gcp::util::Matrix< type >::trace ( )

Get the trace of a matrix (sum of the diagonals)

Trace of a matrix

template<class type >
Matrix< type > gcp::util::Matrix< type >::transpose ( )

Define a transpose operator

Transpose of a matrix

Friends And Related Function Documentation

template<class type>
Vector<type> gcp::util::operator* ( Vector< type > &  vec,
Matrix< type > &  mat 
)
friend

A left-multiplication operator

template<class type>
std::ostream& gcp::util::operator<< ( std::ostream &  os,
Matrix< type > &  mat 
)
friend

Declare a matrix printing method

template<class type>
std::ostringstream& gcp::util::operator<< ( std::ostringstream &  os,
Matrix< type > &  mat 
)
friend

Declare a matrix printing method


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