Skip to content

Function extend

function extend(const vec<T, 1> &) simd

template <size_t Nout, typename T>
KFR_INTRINSIC vec<T, Nout> extend(const vec<T, 1>& x)

Extends a single-element vector to length Nout by repeating its value.

Template parameters
Nout Desired output length.
T Element type of the vector.
Parameters
x Single-element source vector.
Returns
A vector of length Nout whose lanes are all equal to x.front().

Fully qualified name: kfr::extend(const vec<T, 1> &)

Declared at simd/shuffle.hpp:347

Function extend

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

template <size_t Nout, typename T, size_t N>
    requires(N != Nout && N > 1)
KFR_INTRINSIC vec<T, Nout> extend(const vec<T, N>& x)

Resizes a multi-element vector to length Nout by cyclic repetition or truncation.

Active when N != Nout and N > 1.

Template parameters
Nout Desired output length.
T Element type of the vector.
N Input vector length.
Parameters
x Source vector.
Returns
A vector of length Nout.

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

Declared at simd/shuffle.hpp:362

Function extend

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

template <size_t Nout, typename T, size_t N>
    requires(N == Nout && N > 1)
constexpr KFR_INTRINSIC const vec<T, Nout>& extend(const vec<T, N>& x) { … }

Identity overload of extend() for the Nout == N case.

extend

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

Declared at simd/shuffle.hpp:372

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