function havg(const vec<T, N> &) horizontal¶
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.
| T | The element type of the vector. |
| N | The number of elements in the vector. |
| value | The input vector. |
| The average value of all elements. |
Defined at simd/horizontal.hpp:206