First define a manifold M with local coordinates and define a (covariant) metric on
Example 1.
Compute the inner product of two vectors.
Example 2.
Compute the inner product of two 1-forms.
Example 3.
Compute the inner product of two 2-forms.
Example 4.
Compute the inner product of two rank-3 tensors.
Partial contractions of T and S can be computed.
Example 5.
Compute the inner product of two lists of rank-1 tensors (1-forms). In this case the efficiency of the command is improved if the keyword argument inversemetric is given.