Skip to content

Function hsum

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

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

Computes the sum of all elements in the vector.

Template parameters
T The element type of the vector.
N The number of elements in the vector.
Parameters
value The input vector.
Returns
The sum of all vector elements.

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

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