Skip to content

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

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

Computes the dot product of two vectors.

Template parameters
T The element type of the vectors.
N The number of elements in the vectors.
Parameters
x The first vector.
y The second vector.
Returns
The dot product of x and y.

Defined at simd/horizontal.hpp:191