field_inverse_truncated_modal

hcipy.field.field_inverse_truncated_modal(f, num_modes)

Invert a tensor field of order 2 using mode truncation.

Parameters
fField or ndarray

The tensor field for which to calculate the inverses. The tensor order of this Field has to be 2. If it is not a field, a normal truncated inverse will be returned

rcondscalar

The relative condition number of the highest-order mode that must be used for inversion.

Returns
Field or ndarray

The resulting Field with tensor order 2.

Raises
ValueError

If the tensor order of field f is not 2.