SLIMMER
Public Member Functions | Static Public Attributes | Protected Attributes
SimpleVTMat< TM, TS > Class Template Reference

Variable Size Templated Matrix Class. More...

#include <SimpleVTMat.h>

Inheritance diagram for SimpleVTMat< TM, TS >:
SimpleBaseTMat< TM, TS > SimpleNumericArrayIO

List of all members.

Public Member Functions

 SimpleVTMat (const int MATX=3, const int MATY=3)
 Default Simple Size Constructor.
 SimpleVTMat (const SimpleVTMat< TM, TS > &src)
 Copy Constructor.
template<typename TM2 >
 SimpleVTMat (const SimpleBaseTMat< TM2, TS > &src)
 Copy Constructor.
TM * operator[] (const TS &col)
 Return Pointer to a Row (so second [] selects column)
const TM * operator[] (const TS &col) const
TM & operator() (const TS &i)
 Return Refererce to an Element with a Given Offset.
TM Val (const TS i) const
 return Value of a given element offset (class constant)
TM Val (const TS i, const TS j) const
 return Value of a given element (class constant)
void ReSize (const TS MATX, const TS MATY)
 Resize matrix to Given Dimensions.
virtual ~SimpleVTMat ()
 Destructor.
TS MatY () const
 return Y Size of matrix: Number of Rows
TS MatX () const
 return X Size of matrix: Number of Columns
TS MatXY () const
 return total number of elements in Matrix
SimpleVTMat< TM, TS > RowMat (const int &row) const
 Return a Row Matrix.
SimpleVTVec< TM > RowVec (const int &row) const
 Return a Row Vector.
SimpleVTMat< TM, TS > ColumnMat (const int &col) const
 Return a Column Matrix.
SimpleVTVec< TM > ColumnVec (const int &col) const
 Return a Column Vector.
void SetRowVec (const int &row, const SimpleVTVec< TM > &v2)
 Set Row From a Vector (no bounds check for speed!)
void SetColVec (const int &col, const SimpleVTVec< TM > &v2)
 Set Column From a Vector (no bounds check for speed!)
void SubMatrix (SimpleVTMat< TM, TS > &v2, const int &col=0, const int &row=0) const
 General Sub Matrix.
SimpleVTMat< TM, TS > SubMatrix (const int &col=0, const int &row=0, const int &Ncol=1, const int &Nrow=1) const
 Return General Sub Matrix.
SimpleVTMat< TM, TS > & operator= (const SimpleVTMat< TM, TS > &src)
 Operator Matrix = Matrix.
template<typename T2 >
SimpleVTMat< TM, TS > & operator= (const SimpleBaseTMat< T2, TS > &src)
 Generic Assignment for All Other Matrix Types.
template<typename T2 >
SimpleVTMat< TM, TS > & operator+= (const SimpleBaseTMat< T2, TS > &src)
 Operator Matrix+= Matrix.
template<typename T2 >
SimpleVTMat< TM, TS > & operator-= (const SimpleBaseTMat< T2, TS > &src)
 Operator Matrix-= Matrix.
SimpleVTMat< TM, TS > & operator+= (const TM &scalar)
 Operator Matrix+=Scalar.
SimpleVTMat< TM, TS > & operator-= (const TM &scalar)
 Operator Matrix-=Scalar.
SimpleVTMat< TM, TS > & operator*= (const TM &scalar)
 Operator Matrix*=Scalar.
SimpleVTMat< TM, TS > operator* (const TM &scalar) const
 Operator Matrix*Scalar.
template<typename T2 >
SimpleVTVec< TM > operator* (const SimpleBaseTVec< T2 > &v) const
 Operator Matrix*Vector.
template<typename T2 >
SimpleVTMat< TM, TS > operator* (const SimpleBaseTMat< T2, TS > &v) const
 Operator Matrix*Matrix.
template<typename T2 >
SimpleVTMat< TM, TS > threadedMultiplication (const SimpleBaseTMat< T2, TS > &v) const
 Operator Matrix*Matrix.
template<typename T2 >
SimpleVTMat< TM, TS > operator+ (const SimpleBaseTMat< T2, TS > &v) const
 Operator Matrix+Matrix.
template<typename T2 >
SimpleVTMat< TM, TS > operator- (const SimpleBaseTMat< T2, TS > &v) const
 Operator Matrix-Matrix.
template<typename T2 >
SimpleVTMat< TM, TS > operator/ (const SimpleBaseTMat< T2, TS > &v) const
 Operator Matrix/Matrix.
SimpleVTMat< TM, TS > Transpose () const
 Non-Square Transpose with return:
TM Determinant ()
 Determinant.
SimpleVTVec< TM > LinSolve ()
 Solve Set Of Linear Equations.
SimpleVTMat< TM, TS > Inverse () const
 Return Inverse of Matrix.
template<>
const char _versionID []

Static Public Attributes

static const char _versionID []

Protected Attributes

TM * _elem
 Pointer to Storage.
TS _sizeY
TS _sizeX
 Sizes of Matrix.

Detailed Description

template<typename TM = float, typename TS = unsigned int>
class SimpleVTMat< TM, TS >

Variable Size Templated Matrix Class.

Only Type fixed by template at Run Time

Author:
Colin Studholme 2001-
Piotr Habas 2008-
Id:
SimpleVTMat.h,v 1.32 2011/11/22 19:26:58 bicg Exp

Constructor & Destructor Documentation

template<typename TM = float, typename TS = unsigned int>
SimpleVTMat< TM, TS >::SimpleVTMat ( const SimpleVTMat< TM, TS > &  src) [inline]

Copy Constructor.

Including specific defualt copy of identical type

template<typename TM = float, typename TS = unsigned int>
template<typename TM2 >
SimpleVTMat< TM, TS >::SimpleVTMat ( const SimpleBaseTMat< TM2, TS > &  src) [inline]

Copy Constructor.

from Other Matrix Type Derived From SimpleBaseTMat


Member Function Documentation

template<typename TM = float, typename TS = unsigned int>
SimpleVTMat<TM,TS>& SimpleVTMat< TM, TS >::operator= ( const SimpleVTMat< TM, TS > &  src) [inline]

Operator Matrix = Matrix.

Assignment from Base Class

template<typename TM = float, typename TS = unsigned int>
SimpleVTMat<TM,TS> SimpleVTMat< TM, TS >::Transpose ( ) const [inline]

Non-Square Transpose with return:

Note swap in dimensions

 All Classes Functions Variables Typedefs