field_inverse_tikhonov

hcipy.field.field_inverse_tikhonov(f, rcond=1e-15)

Invert a tensor field of order 2 using Tikhonov regularization.

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 inverse with Tikhonov regularization will be returned.

rcondscalar

The relative regularization parameter to use for the inversions.

Returns
Field or ndarray

The resulting Field with tensor order 2.

Raises
ValueError

If the tensor order of field f is not 2.