Template Function ripple::math::dot¶
Defined in File math.hpp
Function Documentation¶
-
template<typename
ImplA
, typenameImplB
>
constexpr autoripple::math
::
dot
(const Array<ImplA> &a, const Array<ImplB> &b) noexcept -> typename array_traits_t<ImplA>::Value¶ Computes the dot product of the two array types.
If the arrays are small, then the loop is unrolled.
- Return
The dot product of the arrays.
- Parameters
a
: The first array for the dot product.b
: The second array for the dot product.
- Template Parameters
ImplA
: The implementation type of array a.ImplB
: The implementation type of array b.