|
| template<std::size_t Columns, std::size_t Rows, scalar Lhs, scalar Rhs> |
| constexpr auto | sbx::math::operator== (const basic_matrix< Columns, Rows, Lhs > &lhs, const basic_matrix< Columns, Rows, Rhs > &rhs) noexcept -> bool |
| | Equality comparison for matrices. More...
|
| |
| template<std::size_t Columns, std::size_t Rows, scalar Lhs, scalar Rhs> |
| constexpr auto | sbx::math::operator+ (basic_matrix< Columns, Rows, Lhs > lhs, const basic_matrix< Columns, Rows, Rhs > &rhs) noexcept -> basic_matrix< Columns, Rows, Lhs > |
| | Matrix addition. More...
|
| |
| template<std::size_t Columns, std::size_t Rows, scalar Lhs, scalar Rhs> |
| constexpr auto | sbx::math::operator- (basic_matrix< Columns, Rows, Lhs > lhs, const basic_matrix< Columns, Rows, Rhs > &rhs) noexcept -> basic_matrix< Columns, Rows, Lhs > |
| | Matrix subtraction. More...
|
| |
| template<std::size_t Columns, std::size_t Rows, scalar Lhs, scalar Rhs> |
| constexpr auto | sbx::math::operator* (basic_matrix< Columns, Rows, Lhs > lhs, Rhs rhs) noexcept -> basic_matrix< Columns, Rows, Lhs > |
| | Scalar multiplication. More...
|
| |
| template<std::size_t Columns, std::size_t Rows, scalar Lhs, scalar Rhs> |
| constexpr auto | sbx::math::operator* (Lhs lhs, basic_matrix< Columns, Rows, Rhs > rhs) noexcept -> basic_matrix< Columns, Rows, Rhs > |
| | Scalar multiplication (reversed). More...
|
| |
| template<typename Matrix > |
| constexpr auto | sbx::math::from_array (std::span< typename Matrix::value_type, Matrix::columns *Matrix::rows > array) -> Matrix |
| | Constructs a matrix from a contiguous array. More...
|
| |
Generic fixed-size matrix type.
This header defines a statically sized, column-major matrix template parameterized by column count, row count, and scalar type.
The matrix is implemented as an array of column vectors and supports element access, arithmetic operations, row extraction, and identity construction. It is intended as a low-level building block for higher- level math types such as transforms and projections.
- Author
- KAJ
- Copyright
- (C) 2026 Jonas Kabelitz