Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorVanthilt committed Jan 24, 2025
1 parent 3ca6498 commit 9831baf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/schemes/slooptnr.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ mutable struct SLoopTNR <: TRGScheme

optimization_algorithm::OptimKit.OptimizationAlgorithm
finalize!::Function
function SLoopTNR(T::TensorMap; optimization_algorithm=LBFGS(8; verbosity=1, maxiter=500, gradtol=1e-4), finalize=finalize!)
function SLoopTNR(T::TensorMap;
optimization_algorithm=LBFGS(8; verbosity=1, maxiter=500,
gradtol=1e-4), finalize=finalize!)
@assert scalartype(T) <: Real "SLoopTNR only supports real-valued TensorMaps"
return new(T, optimization_algorithm, finalize)
end
Expand Down Expand Up @@ -64,4 +66,4 @@ function Base.show(io::IO, scheme::SLoopTNR)
println(io, " * T: $(summary(scheme.T))")
return println(io,
" * Optimization algorithm: $(summary(scheme.optimization_algorithm))")
end
end

0 comments on commit 9831baf

Please sign in to comment.