kron | R Documentation |
A Kronecker product is simply a tensor product whose underlying vector space basis is relabeled. In the present context this is realized by combining multiple index labels into one. The associated dimension to the new label is then simply the product of the dimensions associated to the old index labels respectively.
kron(x, ...)
x |
A labeled tensor object, created by |
... |
Any number of expressions (separated by a comma) of the form
|
A modified tensor object.
Wikipedia: Kronecker Product
Other tensor operations:
Ops.tensor()
,
asym()
,
l()
,
r()
,
subst()
,
sym()
a <- array(1:8, dim = c(2, 2, 2))
a %_% .(i, j, k) |> kron(.(i, j) -> l)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.