glotzmath::Matrix< TYPE, ROWS, COLS > Class Template Reference

#include <GenericMatrix.h>

List of all members.

Public Member Functions

 Matrix ()
 Matrix (const Matrix< TYPE, ROWS, COLS > &)
 Matrix (const TYPE)
 ~Matrix ()
TYPE & operator() (const int, const int)
const TYPE & operator() (const int, const int) const
TYPE & operator[] (const int)
const TYPE & operator[] (const int) const
bool operator== (const TYPE) const
bool operator!= (const TYPE) const
bool operator<= (const TYPE) const
bool operator>= (const TYPE) const
bool operator< (const TYPE) const
bool operator> (const TYPE) const
bool AnyLt (const TYPE) const
bool AnyGt (const TYPE) const
Matrix< TYPE, ROWS,
COLS > & 
operator= (const TYPE)
Matrix< TYPE, ROWS,
COLS > & 
operator+= (const TYPE)
Matrix< TYPE, ROWS,
COLS > & 
operator-= (const TYPE)
Matrix< TYPE, ROWS,
COLS > & 
operator *= (const TYPE)
Matrix< TYPE, ROWS,
COLS > & 
operator/= (const TYPE)
bool operator== (const Matrix< TYPE, ROWS, COLS > &) const
bool operator!= (const Matrix< TYPE, ROWS, COLS > &) const
bool operator<= (const Matrix< TYPE, ROWS, COLS > &) const
bool operator>= (const Matrix< TYPE, ROWS, COLS > &) const
bool operator< (const Matrix< TYPE, ROWS, COLS > &) const
bool operator> (const Matrix< TYPE, ROWS, COLS > &) const
bool AnyLt (const Matrix< TYPE, ROWS, COLS > &) const
bool AnyGt (const Matrix< TYPE, ROWS, COLS > &) const
Matrix< TYPE, ROWS,
COLS > & 
operator= (const Matrix< TYPE, ROWS, COLS > &)
Matrix< TYPE, ROWS,
COLS > & 
operator+= (const Matrix< TYPE, ROWS, COLS > &)
Matrix< TYPE, ROWS,
COLS > & 
operator-= (const Matrix< TYPE, ROWS, COLS > &)
Matrix< TYPE, ROWS,
COLS > & 
operator *= (const Matrix< TYPE, ROWS, COLS > &)
Matrix< TYPE, ROWS,
COLS > & 
operator/= (const Matrix< TYPE, ROWS, COLS > &)
void Abs ()
void Anint ()
void Ceil ()
void Floor ()
void Identity ()
void Zero ()
int Size () const
int size () const
int Rows () const
int Columns () const
TYPE SumOver () const
TYPE Min () const
TYPE Max () const
Vector< TYPE, COLS > GetRowVector (const int) const
Vector< TYPE, ROWS > GetColumnVector (const int) const
void MultiplyRow (const int, const TYPE)
void MultiplyColumn (const int, const TYPE)
void Print (std::ostream &)

Private Attributes

TYPE mMatrix [ROWS *COLS]
int mSize

Friends

template<class T, int R, int C>
std::ostream & operator<< (std::ostream &, Matrix< T, R, C > &)
template<class T, int R, int C>
std::ostream & operator<< (std::ostream &, const Matrix< T, R, C > &)
template<class T, int R, int C>
std::istream & operator>> (std::istream &, Matrix< T, R, C > &)
template<class T, class S, int R, int C>
Matrix< T, R, C > operator+ (const Matrix< T, R, C > &, const S)
template<class T, class S, int R, int C>
Matrix< T, R, C > operator+ (const S, const Matrix< T, R, C > &)
template<class T, class S, int R, int C>
Matrix< T, R, C > operator- (const Matrix< T, R, C > &, const S)
template<class T, class S, int R, int C>
Matrix< T, R, C > operator- (const S, const Matrix< T, R, C > &)
template<class T, class S, int R, int C>
Matrix< T, R, C > operator * (const Matrix< T, R, C > &, const S)
template<class T, class S, int R, int C>
Matrix< T, R, C > operator * (const S, const Matrix< T, R, C > &)
template<class T, class S, int R, int C>
Matrix< T, R, C > operator/ (const Matrix< T, R, C > &, const S)
template<class T, class S, int R, int C>
Matrix< T, R, C > operator/ (const S, const Matrix< T, R, C > &)
template<class T, int R, int C>
Matrix< T, R, C > operator+ (const Matrix< T, R, C > &, const Matrix< T, R, C > &)
template<class T, int R, int C>
Matrix< T, R, C > operator- (const Matrix< T, R, C > &, const Matrix< T, R, C > &)
template<class T, int R, int C>
Matrix< T, R, C > operator * (const Matrix< T, R, C > &, const Matrix< T, R, C > &)
template<class T, int R, int C>
Matrix< T, R, C > operator/ (const Matrix< T, R, C > &, const Matrix< T, R, C > &)
template<class T, int R, int C>
Vector< T, R > Product (const Matrix< T, R, C > &, const Vector< T, C > &)
template<class T, int R, int C>
Vector< T, C > Product (const Vector< T, R > &, const Matrix< T, R, C > &)
template<class T, int R, int C>
Vector< T, R > operator * (const Matrix< T, R, C > &, const Vector< T, C > &)
template<class T, int R, int C>
Vector< T, C > operator * (const Vector< T, R > &, const Matrix< T, R, C > &)
template<class T, int R, int C>
void Product (const Matrix< T, R, C > &, const Vector< T, C > &, Vector< T, R > &)
template<class T, int R, int C>
void Product (const Vector< T, R > &, const Matrix< T, R, C > &, Vector< T, C > &)

template<class TYPE, int ROWS, int COLS>
class glotzmath::Matrix< TYPE, ROWS, COLS >


Constructor & Destructor Documentation

template<class TYPE, int ROWS, int COLS>
glotzmath::Matrix< TYPE, ROWS, COLS >::Matrix (  )  [inline]

template<class TYPE, int ROWS, int COLS>
glotzmath::Matrix< TYPE, ROWS, COLS >::Matrix ( const Matrix< TYPE, ROWS, COLS > &  A  )  [inline]

template<class TYPE, int ROWS, int COLS>
glotzmath::Matrix< TYPE, ROWS, COLS >::Matrix ( const   TYPE  )  [inline]

template<class TYPE, int ROWS, int COLS>
glotzmath::Matrix< TYPE, ROWS, COLS >::~Matrix (  )  [inline]


Member Function Documentation

template<class TYPE, int ROWS, int COLS>
TYPE & glotzmath::Matrix< TYPE, ROWS, COLS >::operator() ( const   int,
const   int 
) [inline]

template<class TYPE, int ROWS, int COLS>
const TYPE & glotzmath::Matrix< TYPE, ROWS, COLS >::operator() ( const   int,
const   int 
) const [inline]

template<class TYPE, int ROWS, int COLS>
TYPE & glotzmath::Matrix< TYPE, ROWS, COLS >::operator[] ( const   int  )  [inline]

template<class TYPE, int ROWS, int COLS>
const TYPE & glotzmath::Matrix< TYPE, ROWS, COLS >::operator[] ( const   int  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator== ( const   TYPE  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator!= ( const   TYPE  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator<= ( const   TYPE  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator>= ( const   TYPE  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator< ( const   TYPE  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator> ( const   TYPE  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::AnyLt ( const   TYPE  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::AnyGt ( const   TYPE  )  const [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator= ( const   TYPE  )  [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator+= ( const   TYPE  )  [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator-= ( const   TYPE  )  [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator *= ( const   TYPE  )  [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator/= ( const   TYPE  )  [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator== ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator!= ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator<= ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator>= ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator< ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::operator> ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::AnyLt ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  const [inline]

template<class TYPE, int ROWS, int COLS>
bool glotzmath::Matrix< TYPE, ROWS, COLS >::AnyGt ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  const [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator= ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator+= ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator-= ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator *= ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  [inline]

template<class TYPE, int ROWS, int COLS>
Matrix< TYPE, ROWS, COLS > & glotzmath::Matrix< TYPE, ROWS, COLS >::operator/= ( const Matrix< TYPE, ROWS, COLS > &  rhs  )  [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::Abs (  )  [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::Anint (  )  [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::Ceil (  )  [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::Floor (  )  [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::Identity (  )  [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::Zero (  )  [inline]

template<class TYPE, int ROWS, int COLS>
int glotzmath::Matrix< TYPE, ROWS, COLS >::Size (  )  const [inline]

template<class TYPE, int ROWS, int COLS>
int glotzmath::Matrix< TYPE, ROWS, COLS >::size (  )  const [inline]

template<class TYPE, int ROWS, int COLS>
int glotzmath::Matrix< TYPE, ROWS, COLS >::Rows (  )  const [inline]

template<class TYPE, int ROWS, int COLS>
int glotzmath::Matrix< TYPE, ROWS, COLS >::Columns (  )  const [inline]

template<class TYPE, int ROWS, int COLS>
TYPE glotzmath::Matrix< TYPE, ROWS, COLS >::SumOver (  )  const [inline]

template<class TYPE, int ROWS, int COLS>
TYPE glotzmath::Matrix< TYPE, ROWS, COLS >::Min (  )  const [inline]

template<class TYPE, int ROWS, int COLS>
TYPE glotzmath::Matrix< TYPE, ROWS, COLS >::Max (  )  const [inline]

template<class TYPE, int ROWS, int COLS>
Vector< TYPE, COLS > glotzmath::Matrix< TYPE, ROWS, COLS >::GetRowVector ( const   int  )  const [inline]

template<class TYPE, int ROWS, int COLS>
Vector< TYPE, ROWS > glotzmath::Matrix< TYPE, ROWS, COLS >::GetColumnVector ( const   int  )  const [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::MultiplyRow ( const   int,
const   TYPE 
) [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::MultiplyColumn ( const   int,
const   TYPE 
) [inline]

template<class TYPE, int ROWS, int COLS>
void glotzmath::Matrix< TYPE, ROWS, COLS >::Print ( std::ostream &  os  )  [inline]


Friends And Related Function Documentation

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
std::ostream& operator<< ( std::ostream &  ,
Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
std::ostream& operator<< ( std::ostream &  ,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
std::istream& operator>> ( std::istream &  ,
Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, class S, int R, int C>
Matrix<T, R, C> operator+ ( const Matrix< T, R, C > &  ,
const   S 
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, class S, int R, int C>
Matrix<T, R, C> operator+ ( const   S,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, class S, int R, int C>
Matrix<T, R, C> operator- ( const Matrix< T, R, C > &  ,
const   S 
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, class S, int R, int C>
Matrix<T, R, C> operator- ( const   S,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, class S, int R, int C>
Matrix<T, R, C> operator * ( const Matrix< T, R, C > &  ,
const   S 
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, class S, int R, int C>
Matrix<T, R, C> operator * ( const   S,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, class S, int R, int C>
Matrix<T, R, C> operator/ ( const Matrix< T, R, C > &  ,
const   S 
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, class S, int R, int C>
Matrix<T, R, C> operator/ ( const   S,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
Matrix<T, R, C> operator+ ( const Matrix< T, R, C > &  ,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
Matrix<T, R, C> operator- ( const Matrix< T, R, C > &  ,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
Matrix<T, R, C> operator * ( const Matrix< T, R, C > &  ,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
Matrix<T, R, C> operator/ ( const Matrix< T, R, C > &  ,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
Vector<T, R> Product ( const Matrix< T, R, C > &  ,
const Vector< T, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
Vector<T, C> Product ( const Vector< T, R > &  ,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
Vector<T, R> operator * ( const Matrix< T, R, C > &  ,
const Vector< T, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
Vector<T, C> operator * ( const Vector< T, R > &  ,
const Matrix< T, R, C > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
void Product ( const Matrix< T, R, C > &  ,
const Vector< T, C > &  ,
Vector< T, R > &   
) [friend]

template<class TYPE, int ROWS, int COLS>
template<class T, int R, int C>
void Product ( const Vector< T, R > &  ,
const Matrix< T, R, C > &  ,
Vector< T, C > &   
) [friend]


Member Data Documentation

template<class TYPE, int ROWS, int COLS>
TYPE glotzmath::Matrix< TYPE, ROWS, COLS >::mMatrix[ROWS *COLS] [private]

template<class TYPE, int ROWS, int COLS>
int glotzmath::Matrix< TYPE, ROWS, COLS >::mSize [private]


The documentation for this class was generated from the following file:
Generated on Tue Feb 24 20:53:39 2009 by  doxygen 1.5.3