smooth
A C++ library for Lie theory
|
Elementary structure for compile-time matrix algebra. More...
#include <static_matrix.hpp>
Public Member Functions | |
constexpr | StaticMatrix () |
Construct matrix filled with zeros. | |
template<std::size_t _NRows, std::size_t _NCols> | |
constexpr StaticMatrix< _Scalar, _NRows, _NCols > | block (std::size_t row0, std::size_t col0) const |
Extract sub-block of size _NRows x _NCols anchored at (row0, col0) | |
constexpr StaticMatrix< _Scalar, _Rows, _Cols > | operator+ (const StaticMatrix< _Scalar, _Rows, _Cols > &o) const |
Matrix addition. | |
constexpr StaticMatrix< _Scalar, _Rows, _Cols > | transpose () const |
Matrix transpose. | |
template<std::size_t _NCols> | |
constexpr StaticMatrix< _Scalar, _Rows, _NCols > | operator* (const StaticMatrix< _Scalar, _Cols, _NCols > &o) const |
Matrix multiplication. | |
Static Public Attributes | |
static constexpr std::size_t | Rows = _Rows |
Number of rows in matrix. | |
static constexpr std::size_t | Cols = _Cols |
Number of columns in matrix. | |
Elementary structure for compile-time matrix algebra.
Matrix is stored in memory in row-major order.
Definition at line 22 of file static_matrix.hpp.
|
inlineconstexpr |
Construct matrix filled with zeros.
Definition at line 34 of file static_matrix.hpp.
|
inlineconstexpr |
Extract sub-block of size _NRows x _NCols anchored at (row0, col0)
Definition at line 43 of file static_matrix.hpp.
|
inlineconstexpr |
Matrix multiplication.
Definition at line 80 of file static_matrix.hpp.
|
inlineconstexpr |
Matrix addition.
Definition at line 55 of file static_matrix.hpp.
|
inlineconstexpr |
Matrix transpose.
Definition at line 67 of file static_matrix.hpp.
|
staticconstexpr |
Number of columns in matrix.
Definition at line 27 of file static_matrix.hpp.
|
staticconstexpr |
Number of rows in matrix.
Definition at line 25 of file static_matrix.hpp.