TensorForm

TensorForm[tens]
prints any of the tensor forms defined in the ADM package in matrix or vector form.
  • TensorForm works on matrix operators, co- and contravariant spherical tensors, spherical tensor operators, spherical tensor decompositions, matrices of tensor decompositions, and Cartesian vectors with scalar, spherical tensor, or operator components.
  • For operators and spherical tensors, TensorForm is equivalent to MatrixForm.
  • Tensor decompositions and Cartesian vectors are printed as unformatted lists, with each component displayed in MatrixForm as appropriate.
In[1]:=
Click for copyable input
TensorForm of an operator:
In[2]:=
Click for copyable input
In[3]:=
Click for copyable input
Out[3]//MatrixForm=
Of a Cartesian vector:
In[4]:=
Click for copyable input
Out[4]=
Of a covariant spherical tensor:
In[5]:=
Click for copyable input
Out[5]//MatrixForm=
Of a contravariant spherical tensor:
In[6]:=
Click for copyable input
Out[6]//MatrixForm=
Of a covariant spherical tensor operator:
In[7]:=
Click for copyable input
Out[7]//MatrixForm=
Of a contravariant spherical tensor operator:
In[8]:=
Click for copyable input
Out[8]//MatrixForm=
Of a Cartesian vector operator:
In[9]:=
Click for copyable input
Out[9]=
Of a contravariant spherical tensor decomposition:
In[10]:=
Click for copyable input
Out[10]=
Of a covariant spherical tensor decomposition:
In[11]:=
Click for copyable input
Out[11]=
Of a tensor decomposition matrix:
In[12]:=
Click for copyable input
Out[12]//MatrixForm=
[an error occurred while processing this directive]