Physlib.Relativity.Tensors.OfInt
4 declarations
Tensor with integer components
#TensorIntA tensor with integer components with respect to the basis. Given a natural number \( n \) and an index configuration \( c : \{0, 1, \dots, n-1\} \to C \), it is defined as a function mapping the component indices associated with \( c \) to the integers \( \mathbb{Z} \).
Tensor from integer components
#toTensorGiven a tensor with integer components , where is a function mapping the set of component indices to , this function constructs the corresponding element in the tensor space . It does so by casting each integer component to the underlying field and using these as the coordinates for the basis of the tensor space.
The -th basis coordinate of is
#basis_repr_applyLet be a natural number and be an index configuration. Let be a function mapping the component indices to the integers (an element of ). Let be the tensor in the space obtained by casting these integer components to the underlying field. Then, for any basis index , the -th coordinate of with respect to the basis is equal to the integer cast into the field.
The -th basis vector is the tensor with components
#basis_eq_tensorIntLet be a natural number and be an index configuration. For any component index , the -th element of the basis for the tensor space is equal to the tensor constructed from the integer-valued function defined by if and otherwise.
