Skip to content

Function column

function column(const vec<vec<T, N1>, N2> &) simd

template <size_t index, typename T, size_t N1, size_t N2>
KFR_INTRINSIC vec<T, N2> column(const vec<vec<T, N1>, N2>& x)

Extracts a single column from a vector-of-vectors.

Treats x as a matrix of N2 rows by N1 columns and returns the index-th column.

Template parameters
index Column index to extract, must be less than N1.
T Element type of the inner vector.
N1 Length of each inner vector (number of columns).
N2 Number of inner vectors (number of rows).
Parameters
x Source vector of vectors.
Returns
A vector of length N2 holding the index-th element of each inner vector.

Fully qualified name: kfr::column(const vec<vec<T, N1>, N2> &)

Declared at simd/shuffle.hpp:1279

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.