Skip to content

Function slice

function slice(const vec<T, N> &) simd

template <size_t start, size_t count, typename T, size_t N>
KFR_INTRINSIC vec<T, count> slice(const vec<T, N>& x)

Extracts a contiguous subvector of count elements starting at start.

Template parameters
start Index of the first element to extract.
count Number of elements to extract.
T Element type of the vector.
N Input vector length.
Parameters
x Source vector.
Returns
A vector of length count holding elements [ start, start + count).

Fully qualified name: kfr::slice(const vec<T, N> &)

Declared at simd/shuffle.hpp:388

Function slice

function slice(const vec<T, N> &, const vec<T, N> &) simd

template <size_t start, size_t count, typename T, size_t N>
KFR_INTRINSIC vec<T, count> slice(const vec<T, N>& x, const vec<T, N>& y)

Extracts a contiguous subvector spanning the concatenation of x and y.

The two vectors are treated as a single concatenated sequence of length N + N.

Template parameters
start Index of the first element to extract, in the concatenated sequence.
count Number of elements to extract.
T Element type of the vectors.
N Length of each input vector.
Parameters
x First source vector.
y Second source vector.
Returns
A vector of length count drawn from the concatenated sequence.

Fully qualified name: kfr::slice(const vec<T, N> &, const vec<T, N> &)

Declared at simd/shuffle.hpp:404

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