numpy.cross()

numpy.cross

numpy.cross(a, b, axisa=-1, axisb=-1, axisc=-1, axis=None) [source]

Return the cross product of two (arrays of) vectors.

The cross product of a and b in R^3 is a vector perpendicular to both a and b. If a and b are arrays of vectors, the vectors are defined by the last axis of a and b by default, and these axes can have dimensions 2 or 3. Where the dimension of either a or b