Reductions
sum
max
min
product
all
any
count
dot
-
template<typename L, typename R, typename T = promoted_vector_value_type<L, R>>
inline T kernel_float::dot(const L &left, const R &right) Compute the dot product of the given vectors
left
andright
Example
vec<int, 3> x = {1, 2, 3}; vec<int, 3> y = {4, 5, 6}; int y = dot(x, y); // Returns 1*4+2*5+3*6 = 32