|
constexpr | FixedMatrix () |
| Default constructor - elements are zero-initialized.
|
|
constexpr | FixedMatrix (std::initializer_list< std::initializer_list< T > > list) |
| Construct from nested initializer list.
|
|
constexpr FixedMatrix< T, cols, rows > | t () const |
| Create transpose of this matrix.
|
|
constexpr T & | operator() (std::size_t row, std::size_t col) |
| Access matrix element (mutable)
|
|
constexpr const T & | operator() (std::size_t row, std::size_t col) const |
| Access matrix element (const)
|
|
constexpr FixedMatrix< T, rows, cols > | operator* (const T &scalar) const |
| Scalar multiplication.
|
|
constexpr std::array< T, rows > | operator* (const std::array< T, cols > &vec) const |
| Matrix-vector multiplication.
|
|
template<std::size_t other_cols> |
constexpr FixedMatrix< T, rows, other_cols > | operator* (const FixedMatrix< T, cols, other_cols > &other) const |
| Matrix-matrix multiplication (FixedMatrix * FixedMatrix)
|
|
constexpr Matrix< T > | operator* (const Matrix< T > &other) const |
| Matrix-matrix multiplication (FixedMatrix * dynamic Matrix)
|
|
constexpr FixedMatrix< T, rows, cols > | operator+ (const FixedMatrix< T, rows, cols > &other) const |
| Matrix addition.
|
|
constexpr FixedMatrix< T, rows, cols > | operator- (const FixedMatrix< T, rows, cols > &other) const |
| Matrix subtraction.
|
|
constexpr void | fill (const T &value) |
| Fill all elements with specified value.
|
|
constexpr void | zeros () |
| Set all elements to zero.
|
|
template<typename T, std::size_t rows, std::size_t cols>
class qualpal::FixedMatrix< T, rows, cols >
Fixed-size matrix class with compile-time dimensions.
- Template Parameters
-
T | Element type (typically double or float) |
rows | Number of rows (compile-time constant) |
cols | Number of columns (compile-time constant) |
Definition at line 116 of file matrix.h.