Skip to content

num::unit_vector

Defined in header <linear/matrix_utils.hpp>

vec<real> unit_vector(idx size, idx index);

Construct the selected standard basis vector in R^size.