gustaf.utils.arr.cross3d#

gustaf.utils.arr.cross3d(a, b)[source]#

Cross product for two 3D arrays. Usually faster than np.cross as it just targets 3d.

Parameters:
  • a ((n, 3) np.ndarray)

  • b ((n, 3) np.ndarray)

Returns:

crossed

Return type:

(n, 3) np.ndarray