TensorReduce

TensorReduce[texpr]
attempts to return a canonical form for the symbolic tensor expression texpr.

Details and OptionsDetails and Options

  • TensorReduce converts polynomials of symbolic tensor expressions containing arbitrary combinations of TensorProduct, TensorContract, and TensorTranspose into a canonical form with respect to symmetries.
  • If an expression is found to be equivalent to a zero tensor due to symmetry, the result will be 0.
  • If TensorDimensions[ten] does not return a list of dimensions, then the expression ten is returned unchanged.

ExamplesExamplesopen allclose all

Basic Examples (1)Basic Examples (1)

Specify the properties of symbolic arrays:

In[1]:=
Click for copyable input

The trace of an antisymmetric matrix vanishes:

In[2]:=
Click for copyable input
Out[2]=

The contraction of a symmetric and an antisymmetric pair vanishes:

In[3]:=
Click for copyable input
Out[3]=

Reorder tensor products lexicographically:

In[4]:=
Click for copyable input
Out[4]=
New in 9
New to Mathematica? Find your learning path »
Have a question? Ask support »