diff --git a/pydlr/pydlr.py b/pydlr/pydlr.py index 7336175..9969eaa 100644 --- a/pydlr/pydlr.py +++ b/pydlr/pydlr.py @@ -58,7 +58,11 @@ def __init__(self, lamb, eps=1e-15, xi=-1, self.xi = xi self.lamb = lamb - self.eps = eps + + eps = np.abs(eps) + min_eps = 10 * np.finfo(float).resolution + + self.eps = eps if eps > min_eps else min_eps opts = dict(eps=eps, xi=xi, max_rank=max_rank, nmax=nmax, verbose=verbose)