Tensor operations
-
If $S, T$ are tensors of the same rank, then so is $S+T$ and $\lambda T$ with $\lambda\in\R$.
-
If $S$ is a $p$-tensor and $T$ is a $q$-tensor, then the tensor product $S\otimes T$ is a $(p+q)$-tensor $$ \begin{align*} (S\otimes T)_{i_1 \ldots i_p j_1 \ldots j_q} = S_{i_1 \ldots i_p} T_{j_1 \ldots j_q}. \end{align*} $$
-
If $T$ is a $p$-tensor, we can construct a $(p-2)$-tensor by contraction $$ \begin{align*} S_{k_1 \ldots k_{p-2}} = \delta_{ij} T_{ijk_1\ldots k_{p-2}}. \end{align*} $$ For rank 2 tensor, the contraction is the trace $A_{ii}$. The dot product is the contraction of the tensor product $\delta_{ij} a_i b_j$.