All Classes Files Functions Variables Typedefs Pages
Public Member Functions | List of all members
Matrix< T, R, C > Struct Template Reference

Description

template<typename T, std::size_t R, std::size_t C>
struct lumina::Matrix< T, R, C >

Represents a RxC matrix with elements of type T.

Template Parameters
TType of elements. Has to be POD!
RNumber of Rows
CNumber of Columns

Inherits MatrixImpl< T, R, C >.

Public Member Functions

Matrix< T, C, R > transposed () const
 
- Public Member Functions inherited from MatrixImpl< T, R, C >
void setToZero ()
 
Vector< T, C > getRow (std::size_t index) const
 
Vector< T, R > getColumn (std::size_t index) const
 
void setRow (std::size_t index, Vector< T, C > vec)
 
void setColumn (std::size_t index, Vector< T, R > vec)
 

Additional Inherited Members

- Public Types inherited from MatrixImpl< T, R, C >
using type = T
 
- Public Attributes inherited from MatrixImpl< T, R, C >
data [R][C]
 
- Static Public Attributes inherited from MatrixImpl< T, R, C >
static constexpr std::size_t numRows = R
 
static constexpr std::size_t numColumns = C