Skip to content

SIMD shuffle Functions


hadd function

template <typename T, size_t N>
T hadd(const vec<T, N> &value)

Sum all elements of the vector


havg function

template <typename T, size_t N>
T havg(const vec<T, N> &value)

Calculate the Arithmetic mean of all elements in the vector


hdot function

template <typename T, size_t N>
T hdot(const vec<T, N> &x, const vec<T, N> &y)

Calculate the Dot-Product of two vectors


hmax function

template <typename T, size_t N>
T hmax(const vec<T, N> &value)

Calculate the maximum of all elements in the vector


hmin function

template <typename T, size_t N>
T hmin(const vec<T, N> &value)

Calculate the minimum of all elements in the vector


hmul function

template <typename T, size_t N>
T hmul(const vec<T, N> &value)

Multiply all elements of the vector


hproduct function

template <typename T, size_t N>
T hproduct(const vec<T, N> &value)

Multiply all elements of the vector


hrms function

template <typename T, size_t N>
T hrms(const vec<T, N> &value)

Calculate the RMS of all elements in the vector


hsum function

template <typename T, size_t N>
T hsum(const vec<T, N> &value)

Sum all elements of the vector


Auto-generated from sources, Revision 5191a48df06ea47104ca67db19fa82058d09c20a, https://github.com/kfrlib/kfr/blob/5191a48df06ea47104ca67db19fa82058d09c20a/include/kfr/