Skip to content

Commit

Permalink
Type specifications for GradientGrassmann
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Dec 15, 2024
1 parent 283a62c commit 218bb23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/algorithms/groundstate/gradient_grassmann.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ with a preconditioner to induce the metric from the Hilbert space inner product.
- `maxiter::Int`: maximum amount of iterations
- `verbosity::Int`: level of information display
"""
struct GradientGrassmann <: Algorithm
method::OptimKit.OptimizationAlgorithm
finalize!::Function
struct GradientGrassmann{O<:OptimKit.OptimizationAlgorithm,F} <: Algorithm
method::O
finalize!::F

function GradientGrassmann(; method=ConjugateGradient, (finalize!)=OptimKit._finalize!,
tol=Defaults.tol, maxiter=Defaults.maxiter, verbosity=2)
Expand Down

0 comments on commit 218bb23

Please sign in to comment.