Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Examples  

xchen::Matrix< T, M, N > Class Template Reference

Matrix is simply a wrapper of Vector of (column) Vector-s. More...

#include <Matrix.H>

List of all members.

Public Methods

 Matrix ()
 Matrix (const MxN_VecOfVec &m)
MxN_VecOfVec & operator() ()
 get the VectorOfVector.

const MxN_VecOfVec & operator() () const
 get the VectorOfVector.

T & operator() (int r, int c)
 use (row, col) operator instead of [row][col]

const T & operator() (int r, int c) const
 use (row, col) operator instead of [row][col]

void SetIdentity ()
void SetFromColumnMajorData (T *data)
void GetColumnMajorData (T *data) const
Vector< T, M > operator() (const Vector< T, N > &x) const
 x' = A(x) <==> x' <- A*x.

Vector< T, M > operator * (const Vector< T, N > &x) const
 x' <- A*x.

template<int L> Matrix< T, M, L > operator * (const Matrix< T, N, L > &B)
 C <- A * B.

void GetTranspose (Matrix< T, N, M > *t) const
void GetInverse (Matrix< T, M, M > *i) const
Matrix< T, N, M > * GetTranspose () const
Matrix< T, M, M > * GetInverse () const

Friends

ostream & operator<< (ostream &os, const Matrix &m)


Detailed Description

template<class T, int M, int N>
class xchen::Matrix< T, M, N >

Matrix is simply a wrapper of Vector of (column) Vector-s.


Constructor & Destructor Documentation

template<class T, int M, int N>
xchen::Matrix< T, M, N >::Matrix   [inline]
 

template<class T, int M, int N>
xchen::Matrix< T, M, N >::Matrix const MxN_VecOfVec &    m [inline]
 


Member Function Documentation

template<class T, int M, int N>
void xchen::Matrix< T, M, N >::GetColumnMajorData T *    data const [inline]
 

template<class T, int M, int N>
Matrix<T,M,M>* xchen::Matrix< T, M, N >::GetInverse   const [inline]
 

template<class T, int M, int N>
void xchen::Matrix< T, M, N >::GetInverse Matrix< T, M, M > *    i const [inline]
 

template<class T, int M, int N>
Matrix<T,N,M>* xchen::Matrix< T, M, N >::GetTranspose   const [inline]
 

template<class T, int M, int N>
void xchen::Matrix< T, M, N >::GetTranspose Matrix< T, N, M > *    t const [inline]
 

template<class T, int M, int N>
template<int L>
Matrix< T, M, L > xchen::Matrix< T, M, N >::operator * const Matrix< T, N, L > &    B [inline]
 

C <- A * B.

template<class T, int M, int N>
Vector< T, M > xchen::Matrix< T, M, N >::operator * const Vector< T, N > &    x const [inline]
 

x' <- A*x.

template<class T, int M, int N>
Vector<T, M> xchen::Matrix< T, M, N >::operator() const Vector< T, N > &    x const [inline]
 

x' = A(x) <==> x' <- A*x.

template<class T, int M, int N>
const T& xchen::Matrix< T, M, N >::operator() int    r,
int    c
const [inline]
 

use (row, col) operator instead of [row][col]

template<class T, int M, int N>
T& xchen::Matrix< T, M, N >::operator() int    r,
int    c
[inline]
 

use (row, col) operator instead of [row][col]

template<class T, int M, int N>
const MxN_VecOfVec& xchen::Matrix< T, M, N >::operator()   const [inline]
 

get the VectorOfVector.

template<class T, int M, int N>
MxN_VecOfVec& xchen::Matrix< T, M, N >::operator()   [inline]
 

get the VectorOfVector.

template<class T, int M, int N>
void xchen::Matrix< T, M, N >::SetFromColumnMajorData T *    data [inline]
 

template<class T, int M, int N>
void xchen::Matrix< T, M, N >::SetIdentity   [inline]
 


Friends And Related Function Documentation

template<class T, int M, int N>
ostream& operator<< ostream &    os,
const Matrix< T, M, N > &    m
[friend]
 


The documentation for this class was generated from the following file:
Generated on Wed Apr 7 21:40:51 2004 by doxygen1.2.18