|
|
constexpr | basic_matrix () noexcept |
| | Constructs a zero-initialized matrix.
|
| |
template<scalar Other = value_type>
requires (Columns > 1u && Rows > 1u) |
| constexpr | basic_matrix (const Other value) noexcept |
| | Constructs a matrix with all elements set to a value. More...
|
| |
template<scalar Other = value_type>
requires (Columns > 1u && Rows > 1u) |
| constexpr | basic_matrix (const basic_matrix< Columns, Rows, Other > &other) noexcept |
| | Constructs a matrix from another matrix with convertible type. More...
|
| |
|
constexpr | basic_matrix (const basic_matrix &other) noexcept=default |
| |
|
constexpr | basic_matrix (basic_matrix &&other) noexcept=default |
| |
|
auto | operator= (const basic_matrix &other) noexcept -> basic_matrix &=default |
| |
|
auto | operator= (basic_matrix &&other) noexcept -> basic_matrix &=default |
| |
| constexpr auto | operator[] (size_type index) noexcept -> column_type & |
| | Accesses a column by index. More...
|
| |
| constexpr auto | operator[] (size_type index) const noexcept -> const column_type & |
| | Accesses a column by index (const). More...
|
| |
template<scalar Other>
requires (Columns > 1u && Rows > 1u) |
| constexpr auto | operator+= (const basic_matrix< Columns, Rows, Other > &other) noexcept -> basic_matrix & |
| | Adds another matrix to this matrix. More...
|
| |
template<scalar Other>
requires (Columns > 1u && Rows > 1u) |
| constexpr auto | operator-= (const basic_matrix< Columns, Rows, Other > &other) noexcept -> basic_matrix & |
| | Subtracts another matrix from this matrix. More...
|
| |
template<scalar Other>
requires (Columns > 1u && Rows > 1u) |
| constexpr auto | operator*= (Other scalar) noexcept -> basic_matrix & |
| | Multiplies this matrix by a scalar. More...
|
| |
template<scalar Other>
requires (Columns > 1u && Rows > 1u) |
| constexpr auto | operator/= (Other scalar) noexcept -> basic_matrix & |
| | Divides this matrix by a scalar. More...
|
| |
| constexpr auto | row (const size_type row) const noexcept -> basic_vector< Columns, value_type > |
| | Extracts a row as a vector. More...
|
| |
| constexpr auto | data () noexcept -> value_type * |
| | Returns a pointer to the underlying contiguous storage. More...
|
| |
| constexpr auto | data () const noexcept -> const value_type * |
| | Returns a pointer to the underlying contiguous storage (const). More...
|
| |
template<std::size_t Columns, std::size_t Rows, scalar Type>
requires (Columns > 1u && Rows > 1u)
class sbx::math::basic_matrix< Columns, Rows, Type >
Fixed-size column-major matrix.
- Template Parameters
-
| Columns | Number of columns. |
| Rows | Number of rows. |
| Type | Scalar value type. |