Skip to content

cross

linear-algebra · scripts/linear-algebra/cross.m

: c = cross (a, b)
: c = cross (a, b, dim)

Vector cross product of the 3-element vectors stored along a dimension.

Without dim the first dimension of length 3 is used. Two length-3 vectors may differ in orientation; both-column inputs yield a column, otherwise a row. No complex conjugation is applied.