num::small_matrix¶
Defined in header <container/small_matrix.hpp>
Fixed-size matrix \(A \in \mathbb{R}^{M \times N}\), row-major, on the stack.
Members¶
| member | description |
|---|---|
std::array<real, M * N> data{} |
|
constexpr real &operator()(idx i, idx j) noexcept |
|
constexpr const real &operator()(idx i, idx j) const noexcept |
|
static constexpr idx rows() noexcept |
|
static constexpr idx cols() noexcept |
|
constexpr void fill(real v) noexcept |
|
static constexpr small_matrix zeros() noexcept |
Construct a matrix of zeros. |
static constexpr small_matrix identity() noexcept |
Construct the identity matrix \(I\); square shapes only. |
constexpr small_matrix<N, M> transposed() const noexcept |
Transpose the matrix: \(A^T\). |
template <idx K> constexpr small_matrix<M, K> operator*(const small_matrix<N, K> &B) const noexcept |
|
constexpr small_vec<M> operator*(const small_vec<N> &x) const noexcept |
|
constexpr small_matrix &operator+=(const small_matrix &o) noexcept |
|
constexpr small_matrix &operator*=(real s) noexcept |