Given a \(k\)-tensor \(S\) and an \(l\)-tensor \(T\), we can
form the cross product \(S\otimes T\), defined as
S T(v_1,…,v_k,v_k+1,…, v_k+l)=
S(v_1,… v_k) T(v_k+1,…
v_k+l).omitted; see latex
Package idiom for this includes cross(S,T)
and S %X% T
;
note that the cross product is not commutative. Function cross()
can take any number of arguments (the result is well-defined because the
cross product is associative); it uses cross2()
as a low-level
helper function.