Skip to content

Commit

Permalink
remove redefinition of tolerance which depended on vector length
Browse files Browse the repository at this point in the history
  • Loading branch information
Jutho committed Oct 23, 2018
1 parent 5086369 commit 1331d16
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/matrixfun/exponentiate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@ function exponentiate(A, t::Number, v, alg::Lanczos)

# tolerance
η::S = alg.tol / τ # tolerance per unit step
if η < length(w)*eps(typeof(η))
η = length(w)*eps(typeof(η))
warn("tolerance too small, increasing to $(η*τ)")
end
totalerr = zero(η)

δ::S = 0.9 # safety factor
Expand Down

0 comments on commit 1331d16

Please sign in to comment.