Motorcortex Math  version: 2.1.0
mcx::math::Matrix< 3, 1, T > Class Template Reference
Inheritance diagram for mcx::math::Matrix< 3, 1, T >:
Collaboration diagram for mcx::math::Matrix< 3, 1, T >:

Public Member Functions

 Matrix (T value=T())
 
 Matrix (const BaseMatrix< 3, 1, T > &mat)
 
 Matrix (T x, T y, T z)
 
Matrix< 3, 1, T > cross (const Matrix< 3, 1, T > &mat) const
 
dot (const Matrix< 3, 1, T > &mat) const
 
void x (T x)
 
void y (T y)
 
void z (T z)
 
x () const
 
y () const
 
z () const
 
 Matrix (T value=T())
 
 Matrix (const BaseMatrix< 3, 1, T > &mat)
 
 Matrix (T x, T y, T z)
 
Matrix< 3, 1, T > cross (const Matrix< 3, 1, T > &mat) const
 
dot (const Matrix< 3, 1, T > &mat) const
 
void x (T x)
 
void y (T y)
 
void z (T z)
 
x () const
 
y () const
 
z () const
 
- Public Member Functions inherited from mcx::math::BaseMatrix< 3, 1, T >
 BaseMatrix (T value=T())
 
 BaseMatrix (const T(&rawData)[rows *cols])
 
 BaseMatrix (const C &container)
 
 BaseMatrix (const BaseMatrix< rows, cols, T > &mat)
 
 BaseMatrix (T value=T())
 
 BaseMatrix (const T(&rawData)[rows *cols])
 
 BaseMatrix (const C &container)
 
 BaseMatrix (const BaseMatrix< rows, cols, T > &mat)
 
BaseMatrix< rows, cols, T > & operator= (const BaseMatrix< rows, cols, T > &)=default
 
BaseMatrix< rows, cols, T > & operator= (T value)
 
BaseMatrix< rows, cols, T > & operator= (const BaseMatrix< rows, cols, T > &)=default
 
BaseMatrix< rows, cols, T > & operator= (T value)
 
operator() (unsigned int row, unsigned int col) const
 
T & operator() (unsigned int row, unsigned int col)
 
operator() (unsigned int row, unsigned int col) const
 
T & operator() (unsigned int row, unsigned int col)
 
operator[] (unsigned int idx) const
 
T & operator[] (unsigned int idx)
 
operator[] (unsigned int idx) const
 
T & operator[] (unsigned int idx)
 
unsigned int getRowCount () const
 
unsigned int getRowCount () const
 
unsigned int getColCount () const
 
unsigned int getColCount () const
 
unsigned int getMaxRowCount () const
 
unsigned int getMaxRowCount () const
 
unsigned int getMaxColCount () const
 
unsigned int getMaxColCount () const
 
void setActiveSize (unsigned int, unsigned int)
 
void setActiveSize (unsigned int, unsigned int)
 
void operator+= (T value)
 
void operator+= (const BaseMatrix< rows, cols, T > &mat)
 
void operator+= (T value)
 
void operator+= (const BaseMatrix< rows, cols, T > &mat)
 
void operator-= (T value)
 
void operator-= (const BaseMatrix< rows, cols, T > &mat)
 
void operator-= (T value)
 
void operator-= (const BaseMatrix< rows, cols, T > &mat)
 
void operator*= (T value)
 
void operator*= (T value)
 
Ret operator+ (const Ret &mat) const
 
Ret operator+ (const Ret &mat) const
 
Ret operator- (const Ret &mat) const
 
Ret operator- (const Ret &mat) const
 
BaseMatrix< rows, cols, T > operator* (T value) const
 
BaseMatrix< rows, cols, T > operator* (const BaseMatrix< rows, cols, T > &mat) const
 
BaseMatrix< rows, cols, T > operator* (T value) const
 
BaseMatrix< rows, cols, T > operator* (const BaseMatrix< rows, cols, T > &mat) const
 
bool operator== (const BaseMatrix< rows, cols, T > &mat) const
 
bool operator== (const BaseMatrix< rows, cols, T > &mat) const
 
bool operator!= (const BaseMatrix< rows, cols, T > &mat) const
 
bool operator!= (const BaseMatrix< rows, cols, T > &mat) const
 
maxAbsElement () const
 
maxAbsElement () const
 
double norm () const
 
double norm () const
 
bool normalize ()
 
bool normalize ()
 
void rawData (T(&data_out)[rows *cols]) const
 
void rawData (T(&data_out)[rows *cols]) const
 
T *const rawDataPtr ()
 
T *const rawDataPtr ()
 
T(& rawDataRef ())[rows *cols]
 
T(& rawDataRef ())[rows *cols]
 
unsigned int rawDataLength () const
 
unsigned int rawDataLength () const
 
void print () const
 
void print () const
 
BaseMatrix< cols, rows, T > transpose () const
 
BaseMatrix< cols, rows, T > transpose () const
 
BaseMatrix< rows, cols2, T > dot (const BaseMatrix< cols, cols2, T > &mat) const
 
BaseMatrix< rows, cols2, T > dot (const BaseMatrix< cols, cols2, T > &mat) const
 
void identity ()
 
void identity ()
 
Matrix< rows-1, cols-1, T > reduce (unsigned int cutRow, unsigned int cutColumn) const
 
Matrix< rows-1, cols-1, T > reduce (unsigned int cutRow, unsigned int cutColumn) const
 

Additional Inherited Members

- Static Public Attributes inherited from mcx::math::BaseMatrix< 3, 1, T >
static constexpr std::size_t rawDataByteSize
 
static constexpr unsigned int rawDataLengthValue
 
- Protected Attributes inherited from mcx::math::BaseMatrix< 3, 1, T >
data [rows *cols]
 
unsigned int activerows
 
unsigned int activecols
 

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