uxarray.utils.computing.cross_fma#
- uxarray.utils.computing.cross_fma(v1, v2)#
Calculate the cross product of two 3D vectors utilizing the fused multiply-add operation.
- Parameters:
(np.array) (v2)
(np.array)
- Returns:
np.array
- Return type:
The cross product vector of size 3.
Example
>>> v1 = np.array([1.0, 2.0, 3.0]) >>> v2 = np.array([4.0, 5.0, 6.0]) >>> cross_fma(v1, v2) array([-3.0, 6.0, -3.0])