Lums
Public Member Functions | Static Public Member Functions | List of all members
lm::Matrix< N, T > Class Template Reference

A class representing a square matrix. More...

#include <Matrix.hpp>

Public Member Functions

 Matrix ()
 
Matrix< N, T > & operator*= (const Matrix< N, T > &rhs)
 
internal::MatrixHelper< N, T > operator[] (std::size_t i)
 
const internal::MatrixHelper< N, const T > operator[] (std::size_t i) const
 
T * data ()
 
const T * data () const
 

Static Public Member Functions

static Matrix< N, T > identity ()
 

Detailed Description

template<std::size_t N, typename T>
class lm::Matrix< N, T >

A class representing a square matrix.

Template Parameters
NThe matrix dimension
TThe matrix type

Constructor & Destructor Documentation

template<std::size_t N, typename T>
lm::Matrix< N, T >::Matrix ( )
inline

Create a null matrix

Member Function Documentation

template<std::size_t N, typename T>
T* lm::Matrix< N, T >::data ( )
inline

Get a raw buffer from the matrix

Returns
The raw buffer
template<std::size_t N, typename T>
const T* lm::Matrix< N, T >::data ( ) const
inline

Get a raw buffer from the matrix

Returns
The raw buffer
template<std::size_t N, typename T>
static Matrix<N, T> lm::Matrix< N, T >::identity ( )
inlinestatic

Get the identity matrix

Returns
The identity matrix
template<std::size_t N, typename T>
Matrix<N, T>& lm::Matrix< N, T >::operator*= ( const Matrix< N, T > &  rhs)
inline

Multiply a matrix

Parameters
rhsThe other matrix
Returns
Self
template<std::size_t N, typename T>
internal::MatrixHelper<N, T> lm::Matrix< N, T >::operator[] ( std::size_t  i)
inline

Get a proxy line

Parameters
iThe line index
Returns
A matrix line
template<std::size_t N, typename T>
const internal::MatrixHelper<N, const T> lm::Matrix< N, T >::operator[] ( std::size_t  i) const
inline

Get a proxy line

Parameters
iThe line index
Returns
A matrix line

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