Constructors of tensors. #
There are a number of ways to construct explicit tensors.
Tensors with a single index. #
The equivalence between V c and Pure S ![c].
Equations
- One or more equations did not get rendered due to their size.
Instances For
The equivalence between V c and S.Tensor ![c].
Instances For
Tensors with two indices. #
fromPairT #
The construction of a tensor with two indices from the tensor product
V c1 ⊗[k] V c2 defined
categorically.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Contraction of fromPairT with fromSingleT #
The contraction of tensors with one index with one with two indices defined categorically.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Contraction of fromPairT with fromPairT #
The contraction of tensors with two indices defined categorically.
Equations
- One or more equations did not get rendered due to their size.
Instances For
fromConstPair #
A constant two tensor (e.g. metric and unit).
Equations
Instances For
Tensors formed by fromConstPair are invariant under the group action.
fromMatrixT #
Rank-two tensors and their component matrices, as a linear equivalence: fromMatrixT c0 c1 M
is the tensor with component matrix M.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The component matrix of a rank-two tensor: the (x, y) entry is
repr t (ComponentIdx.pair.symm (x, y)).
Equations
- t.toMatrix = Matrix.of fun (x : basisIdx (cs 0)) (y : basisIdx (cs 1)) => ((TensorSpecies.Tensor.basis cs).repr t) (TensorSpecies.Tensor.ComponentIdx.pair.symm (x, y))
Instances For
toMatrix_apply at a cons colour list ![c0, c1], where the labels are named by the
colours.
Rank-two tensors with equal component matrices are equal.
Swapping the two slots of a rank-two tensor transposes its component matrix.
fromTripleT #
The construction of a tensor with two indices from the tensor product
V c1 ⊗[k] V c2 defined
categorically.
Equations
- One or more equations did not get rendered due to their size.
Instances For
fromConstTriple #
A constant three tensor (e.g. the Pauli matrices).
Equations
Instances For
Tensors formed by fromConstPair are invariant under the group action.