cross#

VectorArray.cross(other)[source]#

Calculate cross (outer) product with other.

Parameters:
otherVector or VectorArray
Returns:
cross_productVectorArray

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.]])