Computes the cross product of two arrays.
c = cross(a, b)
c = cross(a, b, dim)
Array of any dimension.
Array. b must be the same size as a.
Dimension in which MathScript computes the cross product. The dim-th dimension of a and b must contain exactly 3 elements. dim can be in a range of 1 to the maximum supported array dimension (32). If you do not specify dim, the function works on the first dimension whose size is 3.
Cross product of a and b. c is an array of the same size as a and b.
A = [1, 2, 3] B = [0, -3, 2] C = cross(A, B)
Where This Node Can Run:
Desktop OS: Windows
FPGA: This product does not support FPGA devices