LiteFX::Math::Matrix::transpose¶
Returns a copy of the matrix where the elements are transposed.
Synopsis¶
Declared in <litefx/matrix.hpp>
constexpr generic_mat_type<mat_cols, mat_rows> transpose() const noexcept;
Description¶
You can use this operations, if you want to iterate all columns of the matrix in a more efficient way. Transposing effectively turns a row-major matrix into a column-major one.
Return Value¶
A copy of the matrix where the elements are transposed.