cross#
- VectorArray.cross(other)[source]#
Calculate cross (outer) product with other.
- Parameters:
- other
VectororVectorArray
- other
- Returns:
- cross_product
VectorArray
- cross_product
Examples
>>> vecs_a = ap.VectorArray([[1, 0, 0], [0, 1, 0]]) >>> vecs_b = ap.VectorArray([[0, 1, 0], [0, 0, 1]]) >>> vecs_a.cross(vecs_b) VectorArray([[0. 0. 1.] [1. 0. 0.]])