Tensor[GenerateSymmetricTensors] - generate a list of symmetric tensors from a list of tensors
Calling Sequences
GenerateSymmetricTensors(Tlist, r)
Parameters
Tlist - a list of tensor fields
r - a positive integer, the number of tensors to be chosen from Tlist
Description
Examples
With Tlist = [t1, t2,...,tN], the command GenerateSymmetricTensors(Tlist) will generate a list of symmetric tensors by forming all possible r-fold tensor products ti1⊗ti2...⊗tir and symmetrizing the result.
This command is part of the DifferentialGeometry:-Tensor package, and so can be used in the form GenerateSymmetricTensors(...) only after executing the command with(DifferentialGeometry) and with(Tensor) in that order. It can always be used in the long form DifferentialGeometry:-Tensor:-GenerateSymmetricTensors.
with⁡DifferentialGeometry:with⁡Tensor:
Example 1.
First create a 4-tensional manifold M.
DGsetup⁡w,x,y,z,M:
Create a list L1 of all rank 2 covariant symmetric tensors from the 1-forms dx, dy, dz.
T1≔dx,dy,dz
T1:=dx,dy,dz
L1≔GenerateSymmetricTensors⁡T1,2
L1:=dx⁢dx,12⁢dx⁢dy+12⁢dy⁢dx,12⁢dx⁢dz+12⁢dz⁢dx,dy⁢dy,12⁢dy⁢dz+12⁢dz⁢dy,dz⁢dz
nops⁡L1
6
See Also
DifferentialGeometry
Tensor
GenerateForms
GenerateTensors
Download Help Document