TensorSymmetry
TensorSymmetry[tensor]
gives the symmetry of tensor under permutations of its slots.
TensorSymmetry[tensor,slots]
gives the symmetry under permutation of the specified list of slots.
Details and Options
- TensorSymmetry accepts any type of tensor, either symbolic or explicit, including any type of array.
- A general symmetry is specified by a generating set of pairs {perm,ϕ}, where perm is a permutation of the slots of the tensor, and ϕ is a root of unity. Each pair represents a symmetry of the tensor of the form ϕ TensorTranspose[tensor,perm]==tensor.
- Some symmetry specifications have names:
-
Symmetric[{s1,…,sn}] full symmetry in the slots si Antisymmetric[{s1,…,sn}] antisymmetry in the slots si ZeroSymmetric[{s1,…,sn}] symmetry of a zero tensor - The following options can be given:
-
Assumptions $Assumptions assumptions to make about tensors SameTest Automatic function to test equality of expressions Tolerance Automatic tolerance for approximate numbers - For exact and symbolic arrays, the option SameTest->f indicates that two entries aij… and akl… are taken to be equal if f[aij…,akl…] gives True.
- For approximate arrays, the option Tolerance->t can be used to indicate that all entries Abs[aij…]≤t are taken to be zero.
- For array entries Abs[aij…]>t, equality comparison is done except for the last bits, where is $MachineEpsilon for MachinePrecision arrays and for arrays of Precision .
Examples
open allclose allScope (7)
Find symmetries in complex arrays:
Symmetry of a SymmetrizedArray object:
Symmetry of a SparseArray object:
Specify the symmetry of a symbolic array:
Symmetry of its tensor product with itself. Note the exchange symmetry:
A fully symmetric rank 3 array:
Options (3)
Assumptions (1)
SameTest (1)
This matrix is symmetric for a positive real , but TensorSymmetry gives no symmetry:
Use the option SameTest to get the correct answer:
Properties & Relations (5)
Test whether a matrix is symmetric:
Find the symmetry of the matrix:
Test whether a matrix is antisymmetric:
Find the symmetry of the matrix:
Only a matrix of zeros can be simultaneously symmetric and antisymmetric:
Generation of special multidimensional symmetric arrays:
With a different radius, there are other symmetries:
The symmetry of Symmetrize[tensor,sym] is at least sym:
In some cases the result of Symmetrize[tensor,sym] may have more symmetry than sym:
Text
Wolfram Research (2012), TensorSymmetry, Wolfram Language function, https://reference.wolfram.com/language/ref/TensorSymmetry.html (updated 2017).
CMS
Wolfram Language. 2012. "TensorSymmetry." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017. https://reference.wolfram.com/language/ref/TensorSymmetry.html.
APA
Wolfram Language. (2012). TensorSymmetry. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/TensorSymmetry.html