Skip to content

Function repeat

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

template <size_t count, typename T, size_t N, size_t Nout = N * count>
KFR_INTRINSIC vec<T, Nout> repeat(const vec<T, N>& x)

Repeats the contents of x count times.

Template parameters
count Number of repetitions.
T Element type of the vector.
N Input vector length.
Nout Output length, defaults to N * count.
Parameters
x Source vector.
Returns
A vector of length Nout where the pattern of x is repeated count times.

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

Declared at simd/shuffle.hpp:202

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