fields.tensors.DenseTensorField.tensor_class#

property DenseTensorField.tensor_class: Tuple[int, int]#

Return the (p, q) signature of the tensor.

This represents the number of contravariant (p) and covariant (q) indices.

Returns:

A tuple (p, q) where: - p = number of contravariant indices (1) - q = number of covariant indices (-1)

Return type:

tuple of int