The bilinear map and the product of rank-two tensors #
The bilinear map of a rank-two tensor and the product of two rank-two tensors.
i. Overview #
A rank-two tensor M defines a bilinear map on one-slot tensors by contracting one argument into
each of its slots, t, s ↦ M_{zw} tᶻ sʷ. In the bases dual to the slots of M the matrix of this
map is the component matrix toMatrix M.
contractInnerT A B is the tensor A_{μν} B^{νρ}, in which the second index of A is contracted
with the first index of B. Its indices are μ and ρ, with colours ![cs 0, ds 1]. The general
contraction crossToEnd gives the same tensor, but its colours are a composite of the two colour
lists. With contractInnerT, an identity such as η_{μν} η^{νρ} = δ_μ^ρ needs no renaming of the
colours of the product. For contraction-dual bases, the matrix of A_{μν} B^{νρ} is the matrix
product of (A_{μν}) and (B^{νρ}) (toMatrix_contractInnerT).
ii. Key results #
TensorSpecies.Tensor.toLinearMap₂: the bilinear mapt, s ↦ M_{zw} tᶻ sʷof a rank-two tensor, with its component formulatoLinearMap₂_apply.TensorSpecies.Tensor.toMatrix₂_toLinearMap₂: its matrix in the dual bases is the component matrix ofM.TensorSpecies.Tensor.contractInnerT: the contractionA_{μν} B^{νρ}of two rank-two tensors.TensorSpecies.Tensor.toMatrix_contractInnerT: for contraction-dual bases, its matrix is the matrix product.
iii. Table of contents #
- A. Pairing a rank-two tensor with two vectors
- B. Contracting two rank-two tensors
iv. References #
- None.
A. Pairing a rank-two tensor with two vectors #
Contracting a vector into each slot of a rank-two tensor M gives a bilinear map. This holds for
any species: the only colour condition is duality, an argument contracts with a slot when its
colour is dual to the slot's. For a species without conjugation this map is the metric form
itself; a species with conjugation composes it with conjugation of one argument to get a
sesquilinear form (ConjTensorSpecies.toSesqForm).
The bilinear map t, s ↦ M_{μν} tᵘ sᵛ of a rank-two tensor: t fills the first index of M,
s the second. For the Minkowski metric this is the inner product η_{μν} tᵘ sᵛ.
Equations
- TensorSpecies.Tensor.toLinearMap₂ x y M hx hy = (TensorSpecies.Tensor.crossToEnd 0 0 ⋯ ∘ₗ TensorSpecies.Tensor.crossToSlot 0 0 hx M).compr₂ TensorSpecies.Tensor.toScalar
Instances For
In components, the bilinear map is ∑_{μ,ν} M_{μν} tᵘ sᵛ.
On basis vectors, the bilinear map gives M(e_μ, e_ν) = M_{μν}, so its matrix is the component
matrix (M_{μν}).
B. Contracting two rank-two tensors #
The contraction A_{μν} B^{νρ} of the second index of A with the first index of B, whose
colours are dual by h. The result has the indices μ and ρ, in that order.
Equations
Instances For
contractInnerT is crossToEnd of the last index of A with the first index of B, with the
colours of the result renamed to ![cs 0, ds 1].
crossToEnd of the last index of A with the first index of B is contractInnerT with its
colours renamed. This is contractInnerT_apply read from right to left.
The matrix of A_{μν} B^{νρ} is the matrix product of (A_{μν}) and (B^{νρ}), with the
labels of ν in B matched to those in A by dualIdxEquiv. This is toMatrix_crossToEnd_pair
at general colour lists.
If the matrix (M_{μν}), made square by the label bijection e, is invertible, then
t ↦ M_{μν} t^{νρ} is injective.
contractInnerT commutes with the action of G. For a Lorentz transformation Λ,
(Λ A)_{μν} (Λ B)^{νρ} = Λ (A_{μν} B^{νρ}).