pg_utils.sympy_supp.vector_calculus_3d.dot

pg_utils.sympy_supp.vector_calculus_3d.dot(vec_a, vec_b)[source]

Compute the dot product between two vectors

Parameters:
  • vec_a (array-like) – left operand vector

  • vec_b (array-like) – right operand vector

Note

The method implicitly assumes vec_a and vec_b are of the same length (computed via len), and their components can be multiplied and then summed.

Returns:

scalar product