|
numerics
|
Constexpr fixed-size row-major matrix (stack-allocated). More...
#include <small_matrix.hpp>
Public Member Functions | |
| constexpr real & | operator() (idx i, idx j) noexcept |
| constexpr const real & | operator() (idx i, idx j) const noexcept |
| constexpr void | fill (real v) noexcept |
| constexpr SmallMatrix< N, M > | transposed () const noexcept |
| template<idx K> | |
| constexpr SmallMatrix< M, K > | operator* (const SmallMatrix< N, K > &B) const noexcept |
| Matrix multiplication: (M x N) * (N x K) -> (M x K). | |
| constexpr SmallVec< M > | operator* (const SmallVec< N > &x) const noexcept |
| Matrix-vector product: (MxN) * (N) -> (M). | |
| constexpr SmallMatrix & | operator+= (const SmallMatrix &o) noexcept |
| constexpr SmallMatrix & | operator*= (real s) noexcept |
Static Public Member Functions | |
| static constexpr idx | rows () noexcept |
| static constexpr idx | cols () noexcept |
| static constexpr SmallMatrix | zeros () noexcept |
| static constexpr SmallMatrix | identity () noexcept |
Public Attributes | |
| std::array< real, M *N > | data {} |
Constexpr fixed-size row-major matrix (stack-allocated).
Definition at line 76 of file small_matrix.hpp.
|
inlinestaticconstexprnoexcept |
Definition at line 83 of file small_matrix.hpp.
|
inlineconstexprnoexcept |
Definition at line 85 of file small_matrix.hpp.
References num::SmallMatrix< M, N >::data.
|
inlinestaticconstexprnoexcept |
Definition at line 89 of file small_matrix.hpp.
References num::ipow().
|
inlineconstexprnoexcept |
Definition at line 80 of file small_matrix.hpp.
References num::SmallMatrix< M, N >::data, and num::ipow().
|
inlineconstexprnoexcept |
Definition at line 79 of file small_matrix.hpp.
References num::SmallMatrix< M, N >::data, and num::ipow().
|
inlineconstexprnoexcept |
Matrix multiplication: (M x N) * (N x K) -> (M x K).
Definition at line 106 of file small_matrix.hpp.
References num::ipow().
|
inlineconstexprnoexcept |
Matrix-vector product: (MxN) * (N) -> (M).
Definition at line 116 of file small_matrix.hpp.
References num::ipow().
|
inlineconstexprnoexcept |
Definition at line 128 of file small_matrix.hpp.
References num::SmallMatrix< M, N >::data, and num::ipow().
|
inlineconstexprnoexcept |
Definition at line 124 of file small_matrix.hpp.
References num::SmallMatrix< M, N >::data, and num::ipow().
|
inlinestaticconstexprnoexcept |
Definition at line 82 of file small_matrix.hpp.
References num::ipow().
|
inlineconstexprnoexcept |
Definition at line 96 of file small_matrix.hpp.
References num::ipow().
|
inlinestaticconstexprnoexcept |
Definition at line 87 of file small_matrix.hpp.
Definition at line 77 of file small_matrix.hpp.
Referenced by num::SmallMatrix< M, N >::fill(), num::SmallMatrix< M, N >::operator()(), num::SmallMatrix< M, N >::operator()(), num::SmallMatrix< M, N >::operator*=(), and num::SmallMatrix< M, N >::operator+=().