Skip to content

LiteFX::Math::Matrix::column

Returns a copy of a column over the matrix.

Synopsis

Declared in <litefx/matrix.hpp>

constexpr std::array<scalar_type, mat_cols> column(size_t col) const noexcept;

Description

Note that this call involves a copy, which may be inefficient if done frequently. Prefer converting the matrix into an std::mdspan instead, if supported.

Return Value

An array containing a copy of the specified column.

Parameters

NameDescription
colThe index of the column of the matrix.