User Documentation
RAVL, Recognition And Vision Library
DEVELOP HOME PAGE CLASS LIST CONTENTS
Ravl - Core - Math - TFMatrixC<class DataT,unsigned int N,unsigned int M>
 

  PUBLIC
TFMatrixC::TFMatrixC(void)
TFMatrixC::TFMatrixC(const DataT *)
TFMatrixC::Size1(void) const
TFMatrixC::Size2(void) const
TFMatrixC::Contains(const Index2dC &) const
TFMatrixC::operator [](const Index2dC &)
TFMatrixC::operator [](const Index2dC &) const
TFMatrixC::operator [](UIntT)
TFMatrixC::operator [](UIntT) const
TFMatrixC::Fill(const DataT &)
TFMatrixC::operator ==(const TFMatrixC &) const
TFMatrixC::operator !=(const TFMatrixC &) const
TFMatrixC::operator +(const TFMatrixC &) const
TFMatrixC::operator -(const TFMatrixC &) const
TFMatrixC::operator *(const DataT &) const
TFMatrixC::operator /(const DataT &) const
TFMatrixC::operator +=(const TFMatrixC &)
TFMatrixC::operator -=(const TFMatrixC &)
TFMatrixC::operator *=(const DataT &)
TFMatrixC::operator /=(const DataT &)
TFMatrixC::operator *(const TFVectorC &) const
TFMatrixC::operator *(const TFMatrixC &) const
TFMatrixC::TMul(const TFMatrixC &) const
TFMatrixC::MulT(const TFMatrixC &) const
TFMatrixC::TMul(const TFVectorC &) const
TFMatrixC::T(void) const
TFMatrixC::SumOfAbs(void) const
TFMatrixC::SumSqr(void) const
TFMatrixC::Limit(const DataT &,const DataT &)
TFMatrixC::I(void)
TFMatrixC::SetDiagonal(const TFVectorC &)
TFMatrixC::AddDiagonal(const TFVectorC &)

   TFMatrixC<class DataT,unsigned int N,unsigned int M>   
 
Fixed size NxM matrix.
 
include "Ravl/TFMatrix.hh"
Created:24/01/2001 
User Level:Advanced
Library:RavlCore
In Scope:RavlN

Comments:
Provides basic matrix arithmetic operations for an arbitrary sized matrix.

Derived Classes: Variables:
Methods:
TFMatrixC()
Default constructor.

TFMatrixC(const DataT * init)
Constructor.
Initalise matrix with values from 'init'.

SizeT Size1() const
Get size of matrix in the first dimention

SizeT Size2() const
Get size of matrix in the second dimention

bool Contains(const Index2dC & i) const
Test if array contains index i·

DataT & operator [](const Index2dC & ind)
Access item.

const DataT & operator [](const Index2dC & ind) const
Access item.

SizeBufferAccessC<DataT> operator [](UIntT ind)
Access item.

const SizeBufferAccessC<DataT> operator [](UIntT ind) const
Access item.

void Fill(const DataT & dat)
Fill array with value 'dat'.

bool operator ==(const TFMatrixC<DataT,N,M> & oth) const
Is exactly equal ?

bool operator !=(const TFMatrixC<DataT,N,M> & oth) const
Is not exactly equal ?

TFMatrixC<DataT,N,M> operator +(const TFMatrixC<DataT,N,M> & mat) const
Sum 2 matrixes.

TFMatrixC<DataT,N,M> operator -(const TFMatrixC<DataT,N,M> & mat) const
Subtract 2 matrixes.

TFMatrixC<DataT,N,M> operator *(const DataT & val) const
Multiply all elements of the matrix by a scaler 'val'.
put results in a new matrix

TFMatrixC<DataT,N,M> operator /(const DataT & val) const
Divide all elements of the matrix by a scaler 'val'.
put results in a new matrix

const TFMatrixC<DataT,N,M> & operator +=(const TFMatrixC<DataT,N,M> & mat)
Add another matrix to this one.

const TFMatrixC<DataT,N,M> & operator -=(const TFMatrixC<DataT,N,M> & mat)
Subtract another matrix from this one.

const TFMatrixC<DataT,N,M> & operator *=(const DataT & val)
Multiply all elements of this matrix by a scaler 'val'.

const TFMatrixC<DataT,N,M> & operator /=(const DataT & val)
Divide all elements of this matrix by a scaler 'val'.

TFVectorC<DataT,N> operator *(const TFVectorC<DataT,M> & mat) const
Multiply vector by the matrix.

TFMatrixC<DataT,N,MT> operator *(const TFMatrixC<DataT,M,MT> & mat) const
Mutiply two matrixes.

TFMatrixC<DataT,M,MT> TMul(const TFMatrixC<DataT,N,MT> & mat) const
Transpose this matrix and Multiply by 'mat'

TFMatrixC<DataT,N,NT> MulT(const TFMatrixC<DataT,NT,M> & mat) const
Mutiply this matrix by transpose of 'mat'

TFVectorC<DataT,M> TMul(const TFVectorC<DataT,N> & vec) const
Transpose this matrix and multiply by 'vec'

TFMatrixC<DataT,M,N> T() const
Matrix transpose.

DataT SumOfAbs() const
Return the sum of the absolute values of the matrix.

DataT SumSqr() const
Calculate the sum of the squares of all the elements in the matrix

bool Limit(const DataT & min,const DataT & max)
Limit all values in this matrix to between min and max.
Returns true if all values in the matrix are between the limits.

static TFMatrixC<DataT,N,M> I()
Create an identity matrix.

const TFMatrixC<DataT,N,M> & SetDiagonal(const TFVectorC<DataT,N> & d)
Set the diagonal of this matrix.

const TFMatrixC<DataT,N,M> & AddDiagonal(const TFVectorC<DataT,N> & d)
Add a vector to the diagonal of this matrix.


Maintainer:Charles Galambos, Created: 24/01/2001, Documentation by CxxDoc: Tue Aug 13 09:59:02 2002