Skip to content

horizontal


horizontal function (generic::horizontal)

template <typename T, size_t N, typename ReduceFn>
T horizontal(const vec<T, N> &value, ReduceFn &&reduce)

Applies a reduction function horizontally across all elements of the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Template param ReduceFn The reduction function type.
Param value The input vector.
Param reduce The reduction function to apply.
Returns The result of the reduction across all elements.


hadd function (generic::hadd)

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

Computes the sum of all elements in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The sum of all vector elements.


hadd class (generic::fn::hadd)

hadd

hsum function (generic::hsum)

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

Computes the sum of all elements in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The sum of all vector elements.


hsum class (generic::fn::hsum)

hsum

hmul function (generic::hmul)

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

Computes the product of all elements in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The product of all vector elements.


hmul class (generic::fn::hmul)

hmul

hproduct function (generic::hproduct)

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

Computes the product of all elements in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The product of all vector elements.


hproduct class (generic::fn::hproduct)

hproduct

hbitwiseand function (generic::hbitwiseand)

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

Computes the bitwise AND of all elements in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The result of bitwise AND across all elements.


hbitwiseand class (generic::fn::hbitwiseand)

hbitwiseand

hbitwiseor function (generic::hbitwiseor)

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

Computes the bitwise OR of all elements in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The result of bitwise OR across all elements.


hbitwiseor class (generic::fn::hbitwiseor)

hbitwiseor

hbitwisexor function (generic::hbitwisexor)

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

Computes the bitwise XOR of all elements in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The result of bitwise XOR across all elements.


hbitwisexor class (generic::fn::hbitwisexor)

hbitwisexor

hdot function (generic::hdot)

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

Computes the dot product of two vectors.
Template param T The element type of the vectors.
Template param N The number of elements in the vectors.
Param x The first vector.
Param y The second vector.
Returns The dot product of x and y.


hdot class (generic::fn::hdot)

hdot

havg function (generic::havg)

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

Computes the arithmetic mean (average) of all elements in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The average value of all elements.


havg class (generic::fn::havg)

havg

hrms function (generic::hrms)

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

Computes the root-mean-square (RMS) of the vector elements.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The RMS value of all elements.


hrms class (generic::fn::hrms)

hrms

hmin function (generic::hmin)

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

Computes the minimum element in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The minimum value among all elements.


hmin class (generic::fn::hmin)

hmin

hmax function (generic::hmax)

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

Computes the maximum element in the vector.
Template param T The element type of the vector.
Template param N The number of elements in the vector.
Param value The input vector.
Returns The maximum value among all elements.


hmax class (generic::fn::hmax)

hmax

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