sym | R Documentation |
Takes the symmetric tensor part of a tensor x
with respect to the
specified indices ...
.
An error is thrown if the specified indices do not exist.
sym(x, ...)
x |
A labeled tensor object, created by |
... |
Any number of index expressions. The indices need to occur
in |
A modified tensor object.
Wikipedia: Ricci calculus - Symmetric and antisymmetric parts
Other tensor operations:
Ops.tensor()
,
asym()
,
kron()
,
l()
,
r()
,
subst()
a <- array(1:4, dim = c(2, 2))
a %_% .(i, j) |> sym(i, j)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.