Description Usage Arguments Details Note Author(s) References See Also Examples
Cross products of k-tensors
1 2 |
U,U1,U2 |
Object of class |
... |
Further arguments, currently ignored |
Given a k-tensor object S and an l-tensor T, we can form the cross product S %X% T, defined as
omitted; see PDF
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.
The binary form %X%
uses uppercase X to avoid clashing with
%x%
which is the Kronecker product in base R.
Robin K. S. Hankin
Spivak 1961
1 2 3 4 5 6 7 8 | M <- cbind(1:4,2:5)
U1 <- as.ktensor(M,rnorm(4))
U2 <- as.ktensor(t(M),1:2)
cross(U1, U2)
cross(U2, U1) # not the same!
U1 %X% U2 - U2 %X% U1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.