differential_geometry.dense_utils#
Utility functions for performing basic tensor manipulations including index raising and lowering.
Functions
|
Adjust multiple indices of a tensor field by raising or lowering them using the metric or inverse metric. |
|
Compute the trace over a pair of tensor indices, adjusting their variances if needed. |
|
Compute the volume element (√|det(g)|) from a metric tensor field. |
|
Contract a tensor index with the provided metric tensor. |
|
Lowers a specified index of a tensor field using the metric tensor. |
|
Permutes the order of the tensor indices in the last rank dimensions of the tensor field. |
|
Raise a specified index of a tensor field using the inverse metric tensor. |
|
Compute the tensor product of two tensor fields with specified (p, q) types, ensuring that the result has contravariant indices first and covariant indices last. |
|
Apply a coordinate transformation to a tensor field based on its signature and selected indices. |
|
Infer whether the given metric (or inverse metric) tensor is diagonal or full. |