num::small_matrix¶
Defined in header <container/small_matrix.hpp>
Stack-allocated row-major real matrix with constexpr arithmetic.
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 zero-filled matrix. |
static constexpr small_matrix identity() noexcept |
Construct an identity matrix; available only for square shapes. |
constexpr small_matrix<N, M> transposed() const noexcept |
Return a copy with rows and columns exchanged. |
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 |