|
Further Examples: Tr
Here is a matrix.
In[1]:= 
Out[1]//MatrixForm= 
This gives its trace.
In[2]:= 
Out[2]= 
This gives a generalized trace of the same matrix.
In[3]:= 
Out[3]= 
This generalized trace gives the diagonal elements.
In[4]:= 
Out[4]= 
This gives another generalized trace.
In[5]:= 
In[6]:= 
Out[6]= 
The trace of a matrix is equal to the sum of its eigenvalues.
In[7]:= 
Out[7]= 
Here is a tensor.
In[8]:= 
Out[8]//MatrixForm= 
Here are its dimensions.
In[9]:= 
Out[9]= 
This gives the trace.
In[10]:= 
Out[10]= 
This gives a generalized trace.
In[11]:= 
Out[11]= 
This gives a generalized trace down to level .
In[12]:= 
Out[12]= 
In[13]:= 
|