We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent badca09 commit 3460c22Copy full SHA for 3460c22
1 file changed
src/stopping_criterion.jl
@@ -99,10 +99,9 @@ when _all_ indicate to stop.
99
"""
100
struct StopWhenAll{TCriteria<:Tuple} <: StoppingCriterion
101
criteria::TCriteria
102
- StopWhenAll(c::Vector{StoppingCriterion}) = new{typeof(tuple(c...))}(tuple(c...))
103
- StopWhenAll(c...) = new{typeof(c)}(c)
104
end
105
-
+StopWhenAll(c::AbstractVector{<:StoppingCriterion}) = StopWhenAll(Tuple(c))
+StopWhenAll(c...) = StopWhenAll(c)
106
function indicates_convergence(sc::StopWhenAll)
107
return any(indicates_convergence, sc.criteria)
108
0 commit comments