safe_invert

grizli.utils.safe_invert(arr)[source]

version-safe matrix inversion using np.linalg or np.matrix.I