Skip to content

Commit

Permalink
Add field verbose to CG & fix expand
Browse files Browse the repository at this point in the history
  • Loading branch information
singularitti committed Sep 30, 2024
1 parent 6a39d30 commit e9dca62
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/FermiDiracOperatorExpansion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ abstract type Solver end
Base.@kwdef struct CG <: Solver
abstol::Float64 = 0
maxiter::UInt64 = 2000
verbose::Bool = false
end
struct NewtonSchulz <: Solver end

Expand All @@ -37,7 +38,7 @@ function expand(𝐗₀::AbstractMatrix, solver::CG=CG(); order=2048)
𝐛;
abstol=solver.abstol,
maxiter=Int(solver.maxiter),
verbose=true,
verbose=solver.verbose,
)
𝐱′ # Each column of 𝐗ᵢ₊₁
end,
Expand Down

0 comments on commit e9dca62

Please sign in to comment.