Skip to content

Function havg

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

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

Computes the arithmetic mean (average) 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 average value of all elements.

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

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