From 147d8e4ffcc41b1cf38fc2d1d0234fb0b4484ba8 Mon Sep 17 00:00:00 2001 From: mtfishman Date: Fri, 3 Nov 2023 09:16:54 -0400 Subject: [PATCH] Explicit kwargs in applyexp --- src/treetensornetworks/solvers/applyexp.jl | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/treetensornetworks/solvers/applyexp.jl b/src/treetensornetworks/solvers/applyexp.jl index f18e8091..6e84036e 100644 --- a/src/treetensornetworks/solvers/applyexp.jl +++ b/src/treetensornetworks/solvers/applyexp.jl @@ -21,12 +21,7 @@ struct ApplyExpInfo converged::Int end -function applyexp(H, tau::Number, x0; kwargs...) - maxiter = get(kwargs, :maxiter, 30) - tol = get(kwargs, :tol, 1E-12) - outputlevel = get(kwargs, :outputlevel, 0) - beta_tol = get(kwargs, :normcutoff, 1E-7) - +function applyexp(H, tau::Number, x0; maxiter=30, tol=1e-12, outputlevel=0, normcutoff=1e-7) # Initialize Lanczos vectors v1 = copy(x0) nrm = norm(v1)