Physlib.Relativity.Tensors.ComponentIdx.Pair
Component indices for two-index tensors
Component indices of two-index tensors as pairs of basis indices.
i. Overview
This file defines the equivalence between component indices for two colors and pairs of basis indices of those colors.
ii. Key results
- `TensorSpecies.Tensor.ComponentIdx.pair` is the equivalence between `ComponentIdx cs` and `basisIdx (cs 0) × basisIdx (cs 1)`.
iii. Table of contents
- A. The two-index equivalence
iv. References
There are no known references for the material in this module.
A. The two-index equivalence
4 declarations
for two-index tensors
Given a sequence of two index types (or "colors") , there is an equivalence between the type of component indices for a tensor with these colors, , and the Cartesian product of the individual basis index sets . This equivalence maps a functional index to the pair .
For a tensor with two index types and (given by a mapping ), let be a component index. The equivalence maps the functional index to the ordered pair of its components .
The 0-th component of is the first element of for two-index tensors
Given a sequence of two index types (or "colors") , let and be the sets of basis indices for each color. Let be the equivalence mapping a multi-index to the pair . For any pair of indices , the multi-index obtained from the inverse mapping satisfies .
The second component of the inverse pairing for two-index tensors is the second element of the pair
Let be a sequence of two index types (colors). Let be the equivalence between the type of component indices for a tensor with these colors, , and the Cartesian product of the individual basis index sets . For any pair of basis indices in this product, applying the inverse equivalence to and evaluating the resulting component index function at index yields the second component of the pair, .
