ML Reference
ml::FloatingPointMatrix< VectorT, size > Class Template Reference

#include <mlFloatingPointMatrix.h>

Inheritance diagram for ml::FloatingPointMatrix< VectorT, size >:
ml::Tmat2< MLfloat > ml::Tmat2< MLdouble > ml::Tmat2< MLldouble > ml::Tmat3< MLfloat > ml::Tmat3< MLdouble > ml::Tmat3< MLldouble > ml::Tmat4< MLfloat > ml::Tmat4< MLdouble > ml::Tmat4< MLldouble > ml::Tmat5< MLfloat > ml::Tmat5< MLdouble > ml::Tmat5< MLldouble > ml::Tmat6< MLfloat > ml::Tmat6< MLdouble > ml::Tmat6< MLldouble >

Public Types

enum  { RowCount = size }
enum  { ColumnCount = VectorT::Size }
enum  { ComponentCount = static_cast<int>(RowCount)*ColumnCount }
typedef VectorT::ComponentType ComponentType
 A typedef to 'export' the type of subcomponents.
typedef VectorT VectorType
 A typedef to 'export' the type of component vector.

Public Member Functions

const VectorT & operator[] (const size_t i) const
VectorT & operator[] (const size_t i)
ComponentTypelinearIndexed (const size_t idx)
ComponentType linearIndexedConst (const size_t idx) const
ComponentType compAbsSum () const
void setValuesFromPtr (const ComponentType *const values)
void getValuesToPtr (ComponentType *values) const

Protected Attributes

VectorT v [size]
 The rows constituting the matrix.

Detailed Description

template<class VectorT, size_t size>
class ml::FloatingPointMatrix< VectorT, size >

Base class of all matrix classes that holds the data buffer and provides some general access methods.

Definition at line 34 of file mlFloatingPointMatrix.h.

Member Typedef Documentation

◆ ComponentType

template<class VectorT, size_t size>
typedef VectorT::ComponentType ml::FloatingPointMatrix< VectorT, size >::ComponentType

A typedef to 'export' the type of subcomponents.

Definition at line 38 of file mlFloatingPointMatrix.h.

◆ VectorType

template<class VectorT, size_t size>
typedef VectorT ml::FloatingPointMatrix< VectorT, size >::VectorType

A typedef to 'export' the type of component vector.

Definition at line 41 of file mlFloatingPointMatrix.h.

Member Enumeration Documentation

◆ anonymous enum

template<class VectorT, size_t size>
anonymous enum

This enum grants access to the number of values in the matrix, e.g., it can be used as a template argument.

Enumerator
ComponentCount 

Definition at line 53 of file mlFloatingPointMatrix.h.

◆ anonymous enum

template<class VectorT, size_t size>
anonymous enum

This enum grants access to the row count during compile time, e.g., it can be used as a template argument.

Enumerator
RowCount 

Definition at line 45 of file mlFloatingPointMatrix.h.

◆ anonymous enum

template<class VectorT, size_t size>
anonymous enum

This enum grants access to the row count during compile time, e.g., it can be used as a template argument.

Enumerator
ColumnCount 

Definition at line 49 of file mlFloatingPointMatrix.h.

Member Function Documentation

◆ compAbsSum()

template<class VectorT, size_t size>
VectorT::ComponentType ml::FloatingPointMatrix< VectorT, size >::compAbsSum ( ) const
inline

Definition at line 150 of file mlFloatingPointMatrix.h.

References ColumnCount, compAbsSum(), MLAbs(), RowCount, and v.

Referenced by compAbsSum().

◆ getValuesToPtr()

template<class VectorT, size_t size>
void ml::FloatingPointMatrix< VectorT, size >::getValuesToPtr ( ComponentType * values) const

Copies contents of *this into an array matrix, row by row; type and size must match. Note: This might be not as fast as the setValues methods of the template instances, depending on compiler optimizations (loop unrolling)

Definition at line 177 of file mlFloatingPointMatrix.h.

References ColumnCount, getValuesToPtr(), RowCount, and v.

Referenced by getValuesToPtr(), and ml::AbstractPersistenceOutputStream::write().

◆ linearIndexed()

template<class VectorT, size_t size>
VectorT::ComponentType & ml::FloatingPointMatrix< VectorT, size >::linearIndexed ( const size_t idx)
inline

Definition at line 123 of file mlFloatingPointMatrix.h.

References ComponentCount, linearIndexed(), ML_BAD_INDEX, ml::printTemplateError(), and v.

Referenced by linearIndexed().

◆ linearIndexedConst()

template<class VectorT, size_t size>
VectorT::ComponentType ml::FloatingPointMatrix< VectorT, size >::linearIndexedConst ( const size_t idx) const
inline

◆ operator[]() [1/2]

template<class VectorT, size_t size>
VectorT & ml::FloatingPointMatrix< VectorT, size >::operator[] ( const size_t i)

Definition at line 111 of file mlFloatingPointMatrix.h.

References ML_BAD_INDEX, operator[](), ml::printTemplateError(), and v.

◆ operator[]() [2/2]

template<class VectorT, size_t size>
const VectorT & ml::FloatingPointMatrix< VectorT, size >::operator[] ( const size_t i) const

Definition at line 99 of file mlFloatingPointMatrix.h.

References ML_BAD_INDEX, operator[](), ml::printTemplateError(), and v.

Referenced by operator[](), and operator[]().

◆ setValuesFromPtr()

template<class VectorT, size_t size>
void ml::FloatingPointMatrix< VectorT, size >::setValuesFromPtr ( const ComponentType *const values)

Copies the contents from an array matrix into *this, row by row; type and size must match. Note: This might be not as fast as the setValues methods of the template instances, depending on compiler optimizations (loop unrolling)

Definition at line 164 of file mlFloatingPointMatrix.h.

References ColumnCount, RowCount, setValuesFromPtr(), and v.

Referenced by ml::AbstractPersistenceInputStream::read(), and setValuesFromPtr().

Member Data Documentation

◆ v


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