Shortcuts

Template Function ripple::math::dot

Function Documentation

template<typename ImplA, typename ImplB>
constexpr auto ripple::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.

Docs

Access comprehensive developer documentation for Ripple

View Docs

Tutorials

Get tutorials to help with understand all features

View Tutorials

Examples

Find examples to help get started

View Examples