5.23.5. utils.dotprod

eminus.utils.dotprod(a, b)[source]

Efficiently calculate the expression a * b.

Add an extra check to make sure the result is never zero since this function is used as a denominator in minimizers.

Parameters:
  • a – Array of vectors.

  • b – Array of vectors.

Returns:

The expressions result.