inverse_tikhonov

hcipy.util.inverse_tikhonov(M, rcond=1e-15, svd=None)

Invert M using Tikhonov regularization.

Tikhonov regularization will be an identity matrix, with strength rcond * the maximum singular value of the matrix.

Parameters
Mndarray

The matrix to invert. This matrix must be two-dimensional.

rcondscalar

The relative strength of the regularization. An identity matrix will be used for the regularization.

svdSVD object

A precalculated singular value decomposition object. This will be used if supplied, to avoid recalculation of an SVD.

Returns
ndarray

The inverted matrix.