Skip to content

function hmax(const vec<T, N> &) horizontal

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

Computes the maximum element 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 maximum value among all elements.

Defined at simd/horizontal.hpp:251