mlx.core.linalg.cross#
- cross(a: array, b: array, axis: int = -1, *, stream: None | Stream | Device = None) array#
Compute the cross product of two arrays along a specified axis.
The cross product is defined for arrays with size 2 or 3 in the specified axis. If the size is 2 then the third value is assumed to be zero.
- 參數:
- 回傳:
The cross product of
aandbalong the specified axis.- 回傳型別: