cross
- m3sh.linalg.cross(u, v)[source]
Cross product.
Alternative to NumPy’s vectorized
cross()
function.- Parameters:
u (array_like, shape (3, )) – Vector in \(\mathbb{R}^3\).
v (array_like, shape (3, )) – Vector in \(\mathbb{R}^3\).
- Returns:
Cross product of vectors \(\mathbf{u}\) and \(\mathbf{v}\).
- Return type:
ndarray, shape (3, )