NxN matrix stored in row-major order. More...
#include <matrix.hpp>
Public Member Functions | |
| SampleType & | at (int row, int col) |
| SampleType | at (int row, int col) const |
| SampleType & | operator() (int row, int col) |
| SampleType | operator() (int row, int col) const |
| Matrix | operator* (const Matrix &other) const |
| Matrix multiply. | |
| Matrix | operator* (SampleType scalar) const |
| Scalar multiply. | |
| Matrix | operator+ (const Matrix &other) const |
| Matrix add. | |
| Matrix | transposed () const |
| Transpose. | |
| bool | operator== (const Matrix &other) const |
Static Public Member Functions | |
| static Matrix | identity () |
| Identity matrix. | |
| static Matrix | zero () |
| Zero matrix. | |
Public Attributes | |
| std::array< SampleType, N *N > | data {} |
NxN matrix stored in row-major order.
RT contract: fixed-size matrix construction, element access, arithmetic, transpose, determinants, transforms, and comparison allocate no memory.
|
inline |
|
inline |
|
inlinestatic |
Identity matrix.
|
inline |
|
inline |
|
inline |
Matrix multiply.
|
inline |
Scalar multiply.
|
inline |
Matrix add.
|
inline |
|
inline |
Transpose.
|
inlinestatic |
Zero matrix.
| std::array<SampleType, N * N> pulp::signal::Matrix< N, SampleType >::data {} |