argos::CMatrix< ROWS, COLS > Class Template Reference

#include <matrix.h>

Public Member Functions

 CMatrix ()
 
 CMatrix (const Real *pf_values)
 
 CMatrix (const CMatrix< ROWS, COLS > &c_matrix)
 
CMatrix< ROWS, COLS > & operator= (const CMatrix< ROWS, COLS > &c_matrix)
 
Realoperator() (UInt32 un_row, UInt32 un_col)
 
Real operator() (UInt32 un_row, UInt32 un_col) const
 
Real operator() (UInt32 un_idx) const
 
Realoperator() (UInt32 un_idx)
 
void Set (const Real *f_values)
 
void SetZero ()
 
CMatrix< COLS, ROWS > GetTransposed () const
 
template<UInt32 SMROWS, UInt32 SMCOLS>
void GetSubMatrix (CMatrix< SMROWS, SMCOLS > &c_sub_matrix, UInt32 un_offset_row, UInt32 un_offset_col) const
 
bool operator== (const CMatrix< ROWS, COLS > &c_matrix) const
 
CMatrix< ROWS, COLS > & operator+= (const CMatrix< ROWS, COLS > &c_matrix)
 
CMatrix< ROWS, COLS > & operator-= (const CMatrix< ROWS, COLS > &c_matrix)
 
CMatrix< ROWS, COLS > & operator*= (Real f_scale)
 
CMatrix< ROWS, COLS > operator+ (const CMatrix< ROWS, COLS > &c_matrix) const
 
CMatrix< ROWS, COLS > operator- (const CMatrix< ROWS, COLS > &c_matrix) const
 
CMatrix< ROWS, COLS > operator- () const
 
CMatrix< ROWS, COLS > & operator*= (const CMatrix< COLS, COLS > &c_matrix)
 
template<UInt32 OTRCOLS>
CMatrix< ROWS, OTRCOLS > operator* (const CMatrix< COLS, OTRCOLS > &c_matrix) const
 

Protected Attributes

Real m_pfValues [ROWS *COLS]
 

Friends

std::ostream & operator<< (std::ostream &c_os, const CMatrix &c_matrix)
 

Detailed Description

template<UInt32 ROWS, UInt32 COLS>
class argos::CMatrix< ROWS, COLS >

Definition at line 20 of file matrix.h.

Constructor & Destructor Documentation

template<UInt32 ROWS, UInt32 COLS>
argos::CMatrix< ROWS, COLS >::CMatrix ( )
inline

Definition at line 32 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
argos::CMatrix< ROWS, COLS >::CMatrix ( const Real pf_values)
inline

Definition at line 36 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
argos::CMatrix< ROWS, COLS >::CMatrix ( const CMatrix< ROWS, COLS > &  c_matrix)
inline

Definition at line 40 of file matrix.h.

Member Function Documentation

template<UInt32 ROWS, UInt32 COLS>
template<UInt32 SMROWS, UInt32 SMCOLS>
void argos::CMatrix< ROWS, COLS >::GetSubMatrix ( CMatrix< SMROWS, SMCOLS > &  c_sub_matrix,
UInt32  un_offset_row,
UInt32  un_offset_col 
) const
inline

Definition at line 105 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<COLS, ROWS> argos::CMatrix< ROWS, COLS >::GetTransposed ( ) const
inline

Definition at line 95 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
Real& argos::CMatrix< ROWS, COLS >::operator() ( UInt32  un_row,
UInt32  un_col 
)
inline

Definition at line 51 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
Real argos::CMatrix< ROWS, COLS >::operator() ( UInt32  un_row,
UInt32  un_col 
) const
inline

Definition at line 61 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
Real argos::CMatrix< ROWS, COLS >::operator() ( UInt32  un_idx) const
inline

Definition at line 71 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
Real& argos::CMatrix< ROWS, COLS >::operator() ( UInt32  un_idx)
inline

Definition at line 78 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
template<UInt32 OTRCOLS>
CMatrix<ROWS, OTRCOLS> argos::CMatrix< ROWS, COLS >::operator* ( const CMatrix< COLS, OTRCOLS > &  c_matrix) const
inline

Definition at line 185 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<ROWS, COLS>& argos::CMatrix< ROWS, COLS >::operator*= ( Real  f_scale)
inline

Definition at line 145 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<ROWS, COLS>& argos::CMatrix< ROWS, COLS >::operator*= ( const CMatrix< COLS, COLS > &  c_matrix)
inline

Definition at line 170 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<ROWS, COLS> argos::CMatrix< ROWS, COLS >::operator+ ( const CMatrix< ROWS, COLS > &  c_matrix) const
inline

Definition at line 152 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<ROWS, COLS>& argos::CMatrix< ROWS, COLS >::operator+= ( const CMatrix< ROWS, COLS > &  c_matrix)
inline

Definition at line 131 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<ROWS, COLS> argos::CMatrix< ROWS, COLS >::operator- ( const CMatrix< ROWS, COLS > &  c_matrix) const
inline

Definition at line 158 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<ROWS, COLS> argos::CMatrix< ROWS, COLS >::operator- ( ) const
inline

Definition at line 164 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<ROWS, COLS>& argos::CMatrix< ROWS, COLS >::operator-= ( const CMatrix< ROWS, COLS > &  c_matrix)
inline

Definition at line 138 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
CMatrix<ROWS,COLS>& argos::CMatrix< ROWS, COLS >::operator= ( const CMatrix< ROWS, COLS > &  c_matrix)
inline

Definition at line 44 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
bool argos::CMatrix< ROWS, COLS >::operator== ( const CMatrix< ROWS, COLS > &  c_matrix) const
inline

Definition at line 123 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
void argos::CMatrix< ROWS, COLS >::Set ( const Real f_values)
inline

Definition at line 85 of file matrix.h.

template<UInt32 ROWS, UInt32 COLS>
void argos::CMatrix< ROWS, COLS >::SetZero ( )
inline

Definition at line 90 of file matrix.h.

Friends And Related Function Documentation

template<UInt32 ROWS, UInt32 COLS>
std::ostream& operator<< ( std::ostream &  c_os,
const CMatrix< ROWS, COLS > &  c_matrix 
)
friend

Definition at line 198 of file matrix.h.

Member Data Documentation

template<UInt32 ROWS, UInt32 COLS>
Real argos::CMatrix< ROWS, COLS >::m_pfValues[ROWS *COLS]
protected

Definition at line 222 of file matrix.h.