DenseTensorFieldDMOMixin#

class fields.mixins.dense_mathops.DenseTensorFieldDMOMixin[source]#

Mixin class adding DMOs to fields.tensors.DenseTensorField.

Methods

__init__()

adjust_tensor_signature(indices[, ...])

Adjust the variance (covariant or contravariant) of multiple tensor indices.

contract_with_metric(index[, mode, out, ...])

Contract this tensor field with the metric or inverse metric tensor.

determine_op_dependence(opname, *args, **kwargs)

Infer the symbolic coordinate dependence resulting from a differential operation.

element_wise_laplacian([out, Lterm_field, ...])

Compute the element-wise Laplacian of the field.

element_wise_partial_derivatives([out, ...])

Compute the element-wise partial derivatives of the field.

gradient([basis, inverse_metric_field, out, ...])

Compute the covariant or contravariant gradient of this field.

lower_index(index[, metric_field, out, ...])

Lower a single contravariant index of this tensor field.

raise_index(index[, inverse_metric_field, ...])

Raise a single covariant index of this tensor field.

scalar_laplacian(*args, **kwargs)

Alias for element_wise_laplacian().

vector_divergence([Dterm_field, ...])

Compute the divergence of a vector field.