Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
BIAS::SymmetricMatrix3x3< T > Class Template Reference

is a 'fixed size' symmetric quadratic matrix of dim. More...

#include <Base/Math/SymmetricMatrix3x3.hh>

+ Collaboration diagram for BIAS::SymmetricMatrix3x3< T >:

Public Member Functions

T * GetData ()
 
const T * GetData () const
 
void GetMatrix (Matrix3x3< T > &dst) const
 conversion to full matrix More...
 
Matrix3x3< T > GetMatrix () const
 
T & operator() (const unsigned row, const unsigned col)
 element access More...
 
const T & operator() (const unsigned row, const unsigned col) const
 
SymmetricMatrix3x3< T > & operator= (const SymmetricMatrix3x3< T > &src)
 
int Read (std::istream &is)
 
 SymmetricMatrix3x3 ()
 
 SymmetricMatrix3x3 (const SymmetricMatrix3x3< T > &src)
 
 SymmetricMatrix3x3 (const Matrix3x3< T > &src)
 
 SymmetricMatrix3x3 (const Matrix< T > &src)
 
int Write (std::ostream &os) const
 binary io More...
 
 ~SymmetricMatrix3x3 ()
 

Protected Member Functions

unsigned SymMatrix3x3ToIndex_ (const unsigned row, const unsigned col) const
 

Protected Attributes

Data_ [6]
 The matrix data is stored as follows | Data_[0] Data_[1] Data_[2] | | Data_[1] Data_[3] Data_[4] | | Data_[2] Data_[4] Data_[5] |. More...
 

Friends

BIASMathBase_EXPORT std::ostream & operator (std::ostream &os, const SymmetricMatrix3x3< T > &mat)
 stream operators are declared as friends More...
 
BIASMathBase_EXPORT std::istream & operator>> (std::istream &is, SymmetricMatrix3x3< T > &mat)
 

Detailed Description

template<class T = double>
class BIAS::SymmetricMatrix3x3< T >

is a 'fixed size' symmetric quadratic matrix of dim.

3 x 3 which is templated over the element-type. The class is memory efficient, storing only the necessary 6 independent elements of the symmetric matrix.

Author
woelk 11/2007 (c) www.vision-n.de
Examples:
ExampleSymmetricMatrix3x3.cpp.

Definition at line 52 of file SymmetricMatrix3x3.hh.

Constructor & Destructor Documentation

template<class T = double>
BIAS::SymmetricMatrix3x3< T >::SymmetricMatrix3x3 ( )
inline

Definition at line 55 of file SymmetricMatrix3x3.hh.

template<class T >
BIAS::SymmetricMatrix3x3< T >::SymmetricMatrix3x3 ( const SymmetricMatrix3x3< T > &  src)
Author
woelk 11/2007 (c) www.vision-n.de

Definition at line 41 of file SymmetricMatrix3x3.cpp.

template<class T >
BIAS::SymmetricMatrix3x3< T >::SymmetricMatrix3x3 ( const Matrix3x3< T > &  src)

Definition at line 49 of file SymmetricMatrix3x3.cpp.

References BIAS::Equal().

template<class T >
BIAS::SymmetricMatrix3x3< T >::SymmetricMatrix3x3 ( const Matrix< T > &  src)
template<class T >
BIAS::SymmetricMatrix3x3< T >::~SymmetricMatrix3x3 ( )

Definition at line 92 of file SymmetricMatrix3x3.cpp.

Member Function Documentation

template<class T = double>
T* BIAS::SymmetricMatrix3x3< T >::GetData ( )
inline

Definition at line 85 of file SymmetricMatrix3x3.hh.

template<class T = double>
const T* BIAS::SymmetricMatrix3x3< T >::GetData ( ) const
inline

Definition at line 86 of file SymmetricMatrix3x3.hh.

template<class T >
void BIAS::SymmetricMatrix3x3< T >::GetMatrix ( Matrix3x3< T > &  dst) const

conversion to full matrix

Definition at line 152 of file SymmetricMatrix3x3.cpp.

template<class T >
Matrix3x3< T > BIAS::SymmetricMatrix3x3< T >::GetMatrix ( ) const

Definition at line 165 of file SymmetricMatrix3x3.cpp.

template<class T >
T & BIAS::SymmetricMatrix3x3< T >::operator() ( const unsigned  row,
const unsigned  col 
)

element access

Definition at line 136 of file SymmetricMatrix3x3.cpp.

template<class T >
const T & BIAS::SymmetricMatrix3x3< T >::operator() ( const unsigned  row,
const unsigned  col 
) const

Definition at line 144 of file SymmetricMatrix3x3.cpp.

template<class T >
SymmetricMatrix3x3< T > & BIAS::SymmetricMatrix3x3< T >::operator= ( const SymmetricMatrix3x3< T > &  src)

Definition at line 99 of file SymmetricMatrix3x3.cpp.

References BIAS::SymmetricMatrix3x3< T >::Data_.

template<class T >
int BIAS::SymmetricMatrix3x3< T >::Read ( std::istream &  is)

Definition at line 185 of file SymmetricMatrix3x3.cpp.

template<class T >
unsigned int BIAS::SymmetricMatrix3x3< T >::SymMatrix3x3ToIndex_ ( const unsigned  row,
const unsigned  col 
) const
protected

Definition at line 107 of file SymmetricMatrix3x3.cpp.

template<class T >
int BIAS::SymmetricMatrix3x3< T >::Write ( std::ostream &  os) const

binary io

Definition at line 175 of file SymmetricMatrix3x3.cpp.

Friends And Related Function Documentation

template<class T = double>
BIASMathBase_EXPORT std::ostream& operator ( std::ostream &  os,
const SymmetricMatrix3x3< T > &  mat 
)
friend

stream operators are declared as friends

template<class T = double>
BIASMathBase_EXPORT std::istream& operator>> ( std::istream &  is,
SymmetricMatrix3x3< T > &  mat 
)
friend

Definition at line 213 of file SymmetricMatrix3x3.cpp.

Member Data Documentation

template<class T = double>
T BIAS::SymmetricMatrix3x3< T >::Data_[6]
protected

The matrix data is stored as follows | Data_[0] Data_[1] Data_[2] | | Data_[1] Data_[3] Data_[4] | | Data_[2] Data_[4] Data_[5] |.

Definition at line 95 of file SymmetricMatrix3x3.hh.

Referenced by BIAS::SymmetricMatrix3x3< T >::operator=(), and BIAS::operator>>().


The documentation for this class was generated from the following files: