jrlMathTools::Matrix3x3< T > Struct Template Reference

Template to handle a 3x3 matrix. More...

List of all members.

Public Member Functions

 Matrix3x3 ()
 Matrix3x3 (const T x)
 Matrix3x3 (const T x0, const T x1, const T x2, const T x3, const T x4, const T x5, const T x6, const T x7, const T x8)
 Matrix3x3 (const struct Matrix3x3< T > &v)
template<typename T2 >
 Matrix3x3 (const struct Matrix3x3< T2 > &v)
T & operator[] (unsigned int i)
const T & operator[] (unsigned int i) const
T & operator() (unsigned int i, unsigned int j)
const T & operator() (unsigned int i, unsigned int j) const
void setZero (void)
void setIdentity (void)
Matrix3x3< T > operator+ (const struct Matrix3x3< T > &B) const
struct Matrix3x3< T > operator- (const struct Matrix3x3< T > &B) const
Matrix3x3< T > operator* (const struct Matrix3x3< T > &B) const
void CeqthismulB (const Matrix3x3< T > &B, Matrix3x3< T > &C) const
Matrix3x3< T > operator* (const double &r) const
 MAL_S3_VECTOR (, T) operator*(const MAL_S3_VECTOR(
void CeqthismulB (MAL_S3_VECTOR(, T)&B, MAL_S3_VECTOR(, T)&C) const
Matrix3x3< T > Transpose () const
void Transpose (Matrix3x3< T > &A) const
void Inversion (struct Matrix3x3 &A) const
determinant () const
void Fill (T value)
bool IsIdentity () const
void operator+= (const Matrix3x3< T > &B)
void operator-= (const Matrix3x3< T > &B)
void operator*= (const Matrix3x3< T > &B)
void operator*= (const T &t)

Public Attributes

m [9]

Friends

std::ostream & operator<< (std::ostream &os, Matrix3x3< T > const &A)

Detailed Description

template<typename T>
struct jrlMathTools::Matrix3x3< T >

Template to handle a 3x3 matrix.


Constructor & Destructor Documentation

template<typename T >
jrlMathTools::Matrix3x3< T >::Matrix3x3 (  )  [inline]

Defaut constructor.

template<typename T >
jrlMathTools::Matrix3x3< T >::Matrix3x3 ( const T  x  )  [inline]

Constructor form a scalar

template<typename T >
jrlMathTools::Matrix3x3< T >::Matrix3x3 ( const T  x0,
const T  x1,
const T  x2,
const T  x3,
const T  x4,
const T  x5,
const T  x6,
const T  x7,
const T  x8 
) [inline, explicit]

Constructor from 9 scalar

template<typename T >
jrlMathTools::Matrix3x3< T >::Matrix3x3 ( const struct Matrix3x3< T > &  v  )  [inline]

Copy constructor

template<typename T >
template<typename T2 >
jrlMathTools::Matrix3x3< T >::Matrix3x3 ( const struct Matrix3x3< T2 > &  v  )  [inline]

Hybrid copy constructor


Member Function Documentation

template<typename T >
void jrlMathTools::Matrix3x3< T >::CeqthismulB ( MAL_S3_VECTOR(, T)&  B,
MAL_S3_VECTOR(, T)&  C 
) const [inline]

Multiplication operator with a vector

template<typename T >
void jrlMathTools::Matrix3x3< T >::CeqthismulB ( const Matrix3x3< T > &  B,
Matrix3x3< T > &  C 
) const [inline]
template<typename T >
T jrlMathTools::Matrix3x3< T >::determinant (  )  const [inline]

Determinant

template<typename T >
void jrlMathTools::Matrix3x3< T >::Fill ( value  )  [inline]

fills with value

template<typename T >
void jrlMathTools::Matrix3x3< T >::Inversion ( struct Matrix3x3< T > &  A  )  const [inline]

Inversion

template<typename T >
bool jrlMathTools::Matrix3x3< T >::IsIdentity (  )  const [inline]

returns true if matrix is identity

template<typename T >
jrlMathTools::Matrix3x3< T >::MAL_S3_VECTOR (  )  const

Multiplication operator with a vector

template<typename T >
const T& jrlMathTools::Matrix3x3< T >::operator() ( unsigned int  i,
unsigned int  j 
) const [inline]

Access by giving the (i,j) element.

template<typename T >
T& jrlMathTools::Matrix3x3< T >::operator() ( unsigned int  i,
unsigned int  j 
) [inline]

Access by giving the (i,j) element.

template<typename T >
Matrix3x3<T> jrlMathTools::Matrix3x3< T >::operator* ( const double &  r  )  const [inline]

Multiplication operator with a constant

template<typename T >
Matrix3x3<T> jrlMathTools::Matrix3x3< T >::operator* ( const struct Matrix3x3< T > &  B  )  const [inline]

Multiplication operator with another matrix

template<typename T >
void jrlMathTools::Matrix3x3< T >::operator*= ( const T &  t  )  [inline]

Matrix product with a scalar

template<typename T >
void jrlMathTools::Matrix3x3< T >::operator*= ( const Matrix3x3< T > &  B  )  [inline]

Local matrix multiplication

template<typename T >
Matrix3x3<T> jrlMathTools::Matrix3x3< T >::operator+ ( const struct Matrix3x3< T > &  B  )  const [inline]

Adition operator

template<typename T >
void jrlMathTools::Matrix3x3< T >::operator+= ( const Matrix3x3< T > &  B  )  [inline]

Self matrix addition

template<typename T >
struct Matrix3x3< T > jrlMathTools::Matrix3x3< T >::operator- ( const struct Matrix3x3< T > &  B  )  const [inline, read]

Substraction operator

template<typename T >
void jrlMathTools::Matrix3x3< T >::operator-= ( const Matrix3x3< T > &  B  )  [inline]

Local matrix substraction

template<typename T >
const T& jrlMathTools::Matrix3x3< T >::operator[] ( unsigned int  i  )  const [inline]

ith element considering the matrix as an array.

template<typename T >
T& jrlMathTools::Matrix3x3< T >::operator[] ( unsigned int  i  )  [inline]

ith element considering the matrix as an array.

template<typename T >
void jrlMathTools::Matrix3x3< T >::setIdentity ( void   )  [inline]

Set to identity

template<typename T >
void jrlMathTools::Matrix3x3< T >::setZero ( void   )  [inline]

Set to zero matrix

template<typename T >
void jrlMathTools::Matrix3x3< T >::Transpose ( Matrix3x3< T > &  A  )  const [inline]

Transposition

template<typename T >
Matrix3x3<T> jrlMathTools::Matrix3x3< T >::Transpose (  )  const [inline]

Transposition


Friends And Related Function Documentation

template<typename T >
std::ostream& operator<< ( std::ostream &  os,
Matrix3x3< T > const &  A 
) [friend]

Member Data Documentation

template<typename T >
T jrlMathTools::Matrix3x3< T >::m[9]

The data array.





jrlMathTools library documentation