differential_geometry.dependence.DenseTensorDependence.lower_index#

DenseTensorDependence.lower_index(axis: int, /, *, as_field: bool = False)#

Lower a tensor index along the specified axis using the metric tensor.

Parameters:
  • axis (int) – The index axis to lower.

  • as_field (bool, optional) – If True, return a symbolic expression. If False, return a new dependence object.

Returns:

Symbolic tensor with lowered index or a new dependence object.

Return type:

_GenericFieldType or _DepT

Raises:

ValueError – If the tensor is scalar (rank 0).