iso::math::Matrix< Type > Class Template Reference

matrix class More...

#include <iso_math_matrix.h>

Inherited by iso::math::Matrix3< Type >, iso::math::Matrix4< Type >, and iso::math::MatrixH< Type >.

Inheritance diagram for iso::math::Matrix< Type >:

Inheritance graph
[legend]
Collaboration diagram for iso::math::Matrix< Type >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Matrix ()
 create default zero matrix
 Matrix (unsigned int pRowCount, unsigned int pColCount)
 create zero matrix
 Matrix (const Vector2< unsigned int > &pDim)
 create zero matrix
 Matrix (unsigned int pRowCount, unsigned int pColCount, Type pValue)
 create matrix containing identical values
 Matrix (const Vector2< unsigned int > &pDim, Type pValue)
 create matrix containing identical values
 Matrix (unsigned int pRowCount, unsigned int pColCount, Type *pValues)
 create matrix
template<class Type2>
 Matrix (unsigned int pRowCount, unsigned int pColCount, Type2 *pValues)
 create matrix
 Matrix (const Vector2< unsigned int > &pDim, Type *pValues)
 create matrix
template<class Type2>
 Matrix (const Vector2< unsigned int > &pDim, Type2 *pValues)
 create matrix
 Matrix (const Matrix< Type > &pMatrix)
 copy constructor
template<class Type2>
 Matrix (const Matrix< Type2 > &pMatrix)
 copy constructor
virtual ~Matrix ()
 destructor
const Vector2< unsigned int > & dim () const
 return matrix dimension
unsigned int count () const
 return element count
Type * values ()
 return matrix values
Vector< Type > row (unsigned int pRow) const throw (MathException)
 return row vector
Vector< Type > column (unsigned int pColumn) const throw (MathException)
 return column vector
Matrix< Type > minor (unsigned int pRow, unsigned int pColumn) const throw (MathException)
 calculate submatrix lacking row pRow and column pColumn
Type & operator() (unsigned int pRow, unsigned int pColumn) throw (MathException)
 return matrix element
const Type & operator() (unsigned int pRow, unsigned int pColumn) const throw (MathException)
 return matrix element
Type trace () const throw (MathException)
 return trace of matrix
Type determinant () const throw (MathException)
 calculate determinant of matrix
Matrix< Type > transpose () const
 return transposed matrix
void transpose (Matrix< Type > &pMatrix) const throw (MathException)
 calculate transposed matrix
Matrix< Type > adjoint () const throw (MathException)
 return adjoint of matrix
void adjoint (Matrix< Type > &pMatrix) const throw (MathException)
 calculate adjoint of matrix
virtual Matrix< Type > inverse () const throw (MathException)
 get inverse of matrix
virtual void inverse (Matrix< Type > &pMatrix) const throw (MathException)
 calculate inverse of a matrix
void set (Type pValue, unsigned int pRow, unsigned int pColumn) throw (MathException)
 set matrix value
void set (Type pValue)
 set matrix values
void set (Type *pValues)
 set matrix values
template<class Type2>
void set (Type2 *pValues)
 set matrix values
void set (const Matrix< Type > &pMatrix) throw (MathException)
 set matrix values
template<class Type2>
void set (const Matrix< Type2 > &pMatrix) throw (MathException)
 set matrix values
void setRow (unsigned int pRow, Type pValue) throw (MathException)
 set row values
void setRow (unsigned int pRow, Type *pValues) throw (MathException)
 set row values
template<class Type2>
void setRow (unsigned int pRow, Type2 *pValues) throw (MathException)
 set row values
void setRow (unsigned int pRow, const Vector< Type > &pVector) throw (MathException)
 set row values
template<class Type2>
void setRow (unsigned int pRow, const Vector< Type2 > &pVector) throw (MathException)
 set row values
void setColumn (unsigned int pColumn, Type pValue) throw (MathException)
 set column values
void setColumn (unsigned int pColumn, Type *pValues) throw (MathException)
 set column values
template<class Type2>
void setColumn (unsigned int pColumn, Type2 *pValues) throw (MathException)
 set column values
void setColumn (unsigned int pColumn, const Vector< Type > &pVector) throw (MathException)
 set column values
template<class Type2>
void setColumn (unsigned int pColumn, const Vector< Type2 > &pVector) throw (MathException)
 set column values
const Matrix< Type > & operator= (Type pValue)
 set matrix values
const Matrix< Type > & operator= (Type *pValues)
 set matrix values
template<class Type2>
const Matrix< Type > & operator= (Type2 *pValues)
 set matrix values
const Matrix< Type > & operator= (const Matrix< Type > &pMatrix) throw (MathException)
 set matrix values
template<class Type2>
const Matrix< Type > & operator= (const Matrix< Type2 > &pMatrix) throw (MathException)
 set matrix values
const Matrix< Type > & operator+= (Type pValue)
 matrix += scalar
const Matrix< Type > & operator-= (Type pValue)
 matrix -= scalar
const Matrix< Type > & operator *= (Type pValue)
 matrix *= scalar
const Matrix< Type > & operator/= (Type pValue)
 matrix /= scalar
Matrix< Type > operator+ (Type pValue) const
 matrix + scalar
Matrix< Type > operator- (Type pValue) const
 matrix - scalar
Matrix< Type > operator * (Type pValue) const
 matrix * scalar
Matrix< Type > operator/ (Type pValue) const
 matrix / scalar
const Matrix< Type > & operator+= (const Matrix< Type > &pMatrix) throw (MathException)
 matrix += matrix
template<class Type2>
const Matrix< Type > & operator+= (const Matrix< Type2 > &pMatrix) throw (MathException)
 matrix += matrix
const Matrix< Type > & operator-= (const Matrix< Type > &pMatrix) throw (MathException)
 matrix -= matrix
template<class Type2>
const Matrix< Type > & operator-= (const Matrix< Type2 > &pMatrix) throw (MathException)
 matrix -= matrix
const Matrix< Type > & operator *= (const Matrix< Type > &pMatrix) throw (MathException)
 matrix *= matrix
template<class Type2>
const Matrix< Type > & operator *= (const Matrix< Type2 > &pMatrix) throw (MathException)
 matrix *= matrix
Matrix< Type > operator+ (const Matrix< Type > &pMatrix) const throw (MathException)
 matrix + matrix
template<class Type2>
Matrix< Type > operator+ (const Matrix< Type2 > &pMatrix) const throw (MathException)
 matrix + matrix
Matrix< Type > operator- (const Matrix< Type > &pMatrix) const throw (MathException)
 matrix - matrix
template<class Type2>
Matrix< Type > operator- (const Matrix< Type2 > &pMatrix) const throw (MathException)
 matrix - matrix
Matrix< Type > operator * (const Matrix< Type > &pMatrix) const throw (MathException)
 matrix * matrix
template<class Type2>
Matrix< Type > operator * (const Matrix< Type2 > &pMatrix) const throw (MathException)
 matrix * matrix
Vector< Type > operator * (const Vector< Type > &pVector) const throw (MathException)
 matrix * vector
template<class Type2>
Vector< Type > operator * (const Vector< Type2 > &pVector) const throw (MathException)
 matrix * vector
void reset ()
 reset matrix elements to zero
base::String info () const
 print matrix information

Public Attributes

Type * m
 matrix array

Protected Attributes

Vector2< unsigned int > mDim
 matrix size
unsigned int mCount
 matrix element count

Static Protected Attributes

static Vector2< unsigned int > sDim
 default matrix size

Friends

std::ostream & operator<< (std::ostream &pOstream, const Matrix< Type > &pMatrix)
 print matrix information

Detailed Description

template<class Type>
class iso::math::Matrix< Type >

matrix class

mxn matrix

| e00 e01 e02 e03 ... e0m | | e10 e11 e12 e13 ... e1m | ... | en0 ne1 en2 en3 ... enm |

elements stored in row major format

Created by Daniel Bisig on 7/16/06. Copyright 2006 Daniel Bisig All rights reserved.


Constructor & Destructor Documentation

template<class Type>
iso::math::Matrix< Type >::Matrix (  ) 

create default zero matrix

template<class Type>
iso::math::Matrix< Type >::Matrix ( unsigned int  pRowCount,
unsigned int  pColCount 
)

create zero matrix

Parameters:
pRowCount number of rows
pColCount number of columns

template<class Type>
iso::math::Matrix< Type >::Matrix ( const Vector2< unsigned int > &  pDim  ) 

create zero matrix

Parameters:
pDim size of matrix (dim.x: rowCount, dim.y: colCount)

template<class Type>
iso::math::Matrix< Type >::Matrix ( unsigned int  pRowCount,
unsigned int  pColCount,
Type  pValue 
)

create matrix containing identical values

Parameters:
pRowCount number of rows
pColCount number of columns
pValue value

template<class Type>
iso::math::Matrix< Type >::Matrix ( const Vector2< unsigned int > &  pDim,
Type  pValue 
)

create matrix containing identical values

Parameters:
pDim size of matrix (dim.x: rowCount, dim.y: colCount)
pValue value

template<class Type>
iso::math::Matrix< Type >::Matrix ( unsigned int  pRowCount,
unsigned int  pColCount,
Type *  pValues 
)

create matrix

Parameters:
pRowCount number of rows
pColCount number of columns
pValues values (must be of correct size!)

template<class Type>
template<class Type2>
iso::math::Matrix< Type >::Matrix ( unsigned int  pRowCount,
unsigned int  pColCount,
Type2 *  pValues 
)

create matrix

Parameters:
pRowCount number of rows
pColCount number of columns
pValues values (must be of correct size!)

template<class Type>
iso::math::Matrix< Type >::Matrix ( const Vector2< unsigned int > &  pDim,
Type *  pValues 
)

create matrix

Parameters:
pDim size of matrix (dim.x: rowCount, dim.y: colCount)
pValues values (must be of correct size!)

template<class Type>
template<class Type2>
iso::math::Matrix< Type >::Matrix ( const Vector2< unsigned int > &  pDim,
Type2 *  pValues 
)

create matrix

Parameters:
pDim size of matrix (dim.x: rowCount, dim.y: colCount)
pValues values (must be of correct size!)

template<class Type>
iso::math::Matrix< Type >::Matrix ( const Matrix< Type > &  pMatrix  ) 

copy constructor

Parameters:
pMatrix matrix

template<class Type>
template<class Type2>
iso::math::Matrix< Type >::Matrix ( const Matrix< Type2 > &  pMatrix  ) 

copy constructor

Parameters:
pMatrix matrix

template<class Type>
iso::math::Matrix< Type >::~Matrix (  )  [virtual]

destructor


Member Function Documentation

template<class Type>
const Vector2< unsigned int > & iso::math::Matrix< Type >::dim (  )  const

return matrix dimension

Returns:
matrix dimension

template<class Type>
unsigned int iso::math::Matrix< Type >::count (  )  const

return element count

Returns:
element count

template<class Type>
Type * iso::math::Matrix< Type >::values (  ) 

return matrix values

Returns:
matrix values

template<class Type>
Vector< Type > iso::math::Matrix< Type >::row ( unsigned int  pRow  )  const throw (MathException)

return row vector

Parameters:
pRow row
Returns:
row vector
Exceptions:
MathException row out of bounds

template<class Type>
Vector< Type > iso::math::Matrix< Type >::column ( unsigned int  pColumn  )  const throw (MathException)

return column vector

Parameters:
pColumn column
Returns:
column vector
Exceptions:
MathException column out of bounds

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::minor ( unsigned int  pRow,
unsigned int  pColumn 
) const throw (MathException)

calculate submatrix lacking row pRow and column pColumn

Parameters:
pRow row to remove
pColumn column to remove
Returns:
submatrix lacking row pRow and column pColumn
Exceptions:
MathException column and / or row out of bounds

template<class Type>
Type & iso::math::Matrix< Type >::operator() ( unsigned int  pRow,
unsigned int  pColumn 
) throw (MathException) [inline]

return matrix element

Parameters:
pRow row
pColumn column
Returns:
matrix element
Exceptions:
MathException column and / or row out of bounds

template<class Type>
const Type & iso::math::Matrix< Type >::operator() ( unsigned int  pRow,
unsigned int  pColumn 
) const throw (MathException) [inline]

return matrix element

Parameters:
pRow row
pColumn column
Returns:
matrix element
Exceptions:
MathException column and / or row out of bounds

template<class Type>
Type iso::math::Matrix< Type >::trace (  )  const throw (MathException)

return trace of matrix

Returns:
trace of matrix
Exceptions:
MathException matrix not square

template<class Type>
Type iso::math::Matrix< Type >::determinant (  )  const throw (MathException)

calculate determinant of matrix

Returns:
determinant
Exceptions:
MathException matrix not square

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::transpose (  )  const

return transposed matrix

Returns:
transposed matrix

template<class Type>
void iso::math::Matrix< Type >::transpose ( Matrix< Type > &  pMatrix  )  const throw (MathException)

calculate transposed matrix

Parameters:
pMatrix matrix that will contain transposed matrix
Exceptions:
MathException matrix dimension mismatch

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::adjoint (  )  const throw (MathException)

return adjoint of matrix

Returns:
adjoint of matrix
Exceptions:
MathException matrix not square

template<class Type>
void iso::math::Matrix< Type >::adjoint ( Matrix< Type > &  pMatrix  )  const throw (MathException)

calculate adjoint of matrix

Parameters:
pMatrix adjoint matrix
Exceptions:
MathException matrix not square or matrix dimension mismatch

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::inverse (  )  const throw (MathException) [virtual]

get inverse of matrix

Returns:
inverse of matrix
Exceptions:
MathException matrix not square or matrix not invertible

template<class Type>
void iso::math::Matrix< Type >::inverse ( Matrix< Type > &  pMatrix  )  const throw (MathException) [virtual]

calculate inverse of a matrix

Parameters:
pMatrix inverse matrix
Exceptions:
MathException matrix not square or matrix dimension mismatch or matrix not invertible

template<class Type>
void iso::math::Matrix< Type >::set ( Type  pValue,
unsigned int  pRow,
unsigned int  pColumn 
) throw (MathException)

set matrix value

Parameters:
pValue value
pRow row index
pColumn column index
Exceptions:
MathException column and / or row out of bounds

template<class Type>
void iso::math::Matrix< Type >::set ( Type  pValue  ) 

set matrix values

Parameters:
pValue value

template<class Type>
void iso::math::Matrix< Type >::set ( Type *  pValues  ) 

set matrix values

Parameters:
pValues values
Remarks:
the values array needs to be of the correct size

template<class Type>
template<class Type2>
void iso::math::Matrix< Type >::set ( Type2 *  pValues  ) 

set matrix values

Parameters:
pValues values
Remarks:
the values array needs to be of the correct size

template<class Type>
void iso::math::Matrix< Type >::set ( const Matrix< Type > &  pMatrix  )  throw (MathException)

set matrix values

Parameters:
pMatrix matrix
Exceptions:
MathException matrix dimension mismatch

template<class Type>
template<class Type2>
void iso::math::Matrix< Type >::set ( const Matrix< Type2 > &  pMatrix  )  throw (MathException)

set matrix values

Parameters:
pMatrix matrix
Exceptions:
MathException matrix dimension mismatch

template<class Type>
void iso::math::Matrix< Type >::setRow ( unsigned int  pRow,
Type  pValue 
) throw (MathException)

set row values

Parameters:
pRow row index
pValue value
Exceptions:
MathException row out of bounds

template<class Type>
void iso::math::Matrix< Type >::setRow ( unsigned int  pRow,
Type *  pValues 
) throw (MathException)

set row values

Parameters:
pRow row index
pValues values
Exceptions:
MathException row out of bounds
Remarks:
the values array needs to be of the correct size

template<class Type>
template<class Type2>
void iso::math::Matrix< Type >::setRow ( unsigned int  pRow,
Type2 *  pValues 
) throw (MathException)

set row values

Parameters:
pRow row index
pValues values
Exceptions:
MathException row out of bounds
Remarks:
the values array needs to be of the correct size

template<class Type>
void iso::math::Matrix< Type >::setRow ( unsigned int  pRow,
const Vector< Type > &  pVector 
) throw (MathException)

set row values

Parameters:
pRow row index
pVector row vector
Exceptions:
MathException row out of bounds or vector dimension mismatch

template<class Type>
template<class Type2>
void iso::math::Matrix< Type >::setRow ( unsigned int  pRow,
const Vector< Type2 > &  pVector 
) throw (MathException)

set row values

Parameters:
pRow row index
pVector row vector
Exceptions:
MathException row out of bounds or vector dimension mismatch

template<class Type>
void iso::math::Matrix< Type >::setColumn ( unsigned int  pColumn,
Type  pValue 
) throw (MathException)

set column values

Parameters:
pColumn column index
pValue value
Exceptions:
MathException column out of bounds

template<class Type>
void iso::math::Matrix< Type >::setColumn ( unsigned int  pColumn,
Type *  pValues 
) throw (MathException)

set column values

Parameters:
pColumn column index
pValues values
Exceptions:
MathException column out of bounds
Remarks:
the values array needs to be of the correct size

template<class Type>
template<class Type2>
void iso::math::Matrix< Type >::setColumn ( unsigned int  pColumn,
Type2 *  pValues 
) throw (MathException)

set column values

Parameters:
pColumn column index
pValues values
Exceptions:
MathException column out of bounds
Remarks:
the values array needs to be of the correct size

template<class Type>
void iso::math::Matrix< Type >::setColumn ( unsigned int  pColumn,
const Vector< Type > &  pVector 
) throw (MathException)

set column values

Parameters:
pColumn column index
pVector column vector
Exceptions:
MathException column out of bounds or vector dimension mismatch

template<class Type>
template<class Type2>
void iso::math::Matrix< Type >::setColumn ( unsigned int  pColumn,
const Vector< Type2 > &  pVector 
) throw (MathException)

set column values

Parameters:
pColumn column index
pVector column vector
Exceptions:
MathException column out of bounds or vector dimension mismatch

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator= ( Type  pValue  ) 

set matrix values

Parameters:
pValue value

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator= ( Type *  pValues  ) 

set matrix values

Parameters:
pValues values
Remarks:
the value array needs to be of the correct size!

template<class Type>
template<class Type2>
const Matrix< Type > & iso::math::Matrix< Type >::operator= ( Type2 *  pValues  ) 

set matrix values

Parameters:
pValues values
Remarks:
the value array needs to be of the correct size!

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator= ( const Matrix< Type > &  pMatrix  )  throw (MathException)

set matrix values

Parameters:
pMatrix matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
template<class Type2>
const Matrix< Type > & iso::math::Matrix< Type >::operator= ( const Matrix< Type2 > &  pMatrix  )  throw (MathException)

set matrix values

Parameters:
pMatrix matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator+= ( Type  pValue  ) 

matrix += scalar

Parameters:
pValue value
Returns:
matrix

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator-= ( Type  pValue  ) 

matrix -= scalar

Parameters:
pValue value
Returns:
matrix

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator *= ( Type  pValue  ) 

matrix *= scalar

Parameters:
pValue value
Returns:
matrix

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator/= ( Type  pValue  ) 

matrix /= scalar

Parameters:
pValue value
Returns:
matrix

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::operator+ ( Type  pValue  )  const

matrix + scalar

Parameters:
pValue value
Returns:
matrix

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::operator- ( Type  pValue  )  const

matrix - scalar

Parameters:
pValue value
Returns:
matrix

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::operator * ( Type  pValue  )  const

matrix * scalar

Parameters:
pValue value
Returns:
matrix

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::operator/ ( Type  pValue  )  const

matrix / scalar

Parameters:
pValue value
Returns:
matrix

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator+= ( const Matrix< Type > &  pMatrix  )  throw (MathException)

matrix += matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
template<class Type2>
const Matrix< Type > & iso::math::Matrix< Type >::operator+= ( const Matrix< Type2 > &  pMatrix  )  throw (MathException)

matrix += matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator-= ( const Matrix< Type > &  pMatrix  )  throw (MathException)

matrix -= matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
template<class Type2>
const Matrix< Type > & iso::math::Matrix< Type >::operator-= ( const Matrix< Type2 > &  pMatrix  )  throw (MathException)

matrix -= matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
const Matrix< Type > & iso::math::Matrix< Type >::operator *= ( const Matrix< Type > &  pMatrix  )  throw (MathException)

matrix *= matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch or matrix not square

template<class Type>
template<class Type2>
const Matrix< Type > & iso::math::Matrix< Type >::operator *= ( const Matrix< Type2 > &  pMatrix  )  throw (MathException)

matrix *= matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch or matrix not square

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::operator+ ( const Matrix< Type > &  pMatrix  )  const throw (MathException)

matrix + matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
template<class Type2>
Matrix< Type > iso::math::Matrix< Type >::operator+ ( const Matrix< Type2 > &  pMatrix  )  const throw (MathException)

matrix + matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::operator- ( const Matrix< Type > &  pMatrix  )  const throw (MathException)

matrix - matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
template<class Type2>
Matrix< Type > iso::math::Matrix< Type >::operator- ( const Matrix< Type2 > &  pMatrix  )  const throw (MathException)

matrix - matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
Matrix< Type > iso::math::Matrix< Type >::operator * ( const Matrix< Type > &  pMatrix  )  const throw (MathException)

matrix * matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
template<class Type2>
Matrix< Type > iso::math::Matrix< Type >::operator * ( const Matrix< Type2 > &  pMatrix  )  const throw (MathException)

matrix * matrix

Parameters:
pMatrix matrix
Returns:
matrix
Exceptions:
MathException Matrix dimension mismatch

template<class Type>
Vector< Type > iso::math::Matrix< Type >::operator * ( const Vector< Type > &  pVector  )  const throw (MathException)

matrix * vector

Parameters:
pVector vector
Returns:
vector
Exceptions:
Vector dimension mismatch

template<class Type>
template<class Type2>
Vector< Type > iso::math::Matrix< Type >::operator * ( const Vector< Type2 > &  pVector  )  const throw (MathException)

matrix * vector

Parameters:
pVector vector
Returns:
vector
Exceptions:
Vector dimension mismatch

template<class Type>
void iso::math::Matrix< Type >::reset (  ) 

reset matrix elements to zero

template<class Type>
base::String iso::math::Matrix< Type >::info (  )  const

print matrix information


Friends And Related Function Documentation

template<class Type>
std::ostream& operator<< ( std::ostream &  pOstream,
const Matrix< Type > &  pMatrix 
) [friend]

print matrix information

Parameters:
pOstream output stream
pMatrix matrix
Returns:
output stream


Member Data Documentation

template<class Type>
Type* iso::math::Matrix< Type >::m

matrix array

template<class Type>
Vector2< unsigned int > iso::math::Matrix< Type >::sDim [static, protected]

default matrix size

template<class Type>
Vector2<unsigned int> iso::math::Matrix< Type >::mDim [protected]

matrix size

mDim.x : row count mDim.y : column count

template<class Type>
unsigned int iso::math::Matrix< Type >::mCount [protected]

matrix element count


The documentation for this class was generated from the following file:
Generated on Fri Feb 25 14:04:07 2011 for iso_math by  doxygen 1.5.1