field_inv

hcipy.field.field_inv(f)

Compute the (multiplicative) inverse of a tensor field of order 2.

Parameters
fField

The tensor field for which to calculate the inverses. The tensor order of this field has to be 2.

Returns
Field

The resulting Field with tensor order 2.

Raises
ValueError

If the tensor order of field f is not 2.