From 218bb23dcdcf8a71b4e39b241b714de4ac95c452 Mon Sep 17 00:00:00 2001 From: Lukas Devos Date: Sun, 15 Dec 2024 16:42:58 -0500 Subject: [PATCH] Type specifications for GradientGrassmann --- src/algorithms/groundstate/gradient_grassmann.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/algorithms/groundstate/gradient_grassmann.jl b/src/algorithms/groundstate/gradient_grassmann.jl index 6e640af40..f8228da12 100644 --- a/src/algorithms/groundstate/gradient_grassmann.jl +++ b/src/algorithms/groundstate/gradient_grassmann.jl @@ -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)