sph_dot#
- caput.astro.coordinates.spherical.sph_dot(arr1: numpy.typing.ArrayLike[numpy.integer | numpy.floating], arr2: numpy.typing.ArrayLike[numpy.integer | numpy.floating]) numpy.ndarray[numpy.floating][source]#
Take the scalar product in spherical polar coordinates.
- Parameters:
- arr1, arr2array_like
Two arrays of vectors in spherical polar coordinates
[r, theta, phi], (or alternatively as[theta, phi]with r assumed to be 1). The two arrays should be broadcastable against each other.
- Returns:
- dotted_vectorsarray_like
An array of the scalar products.