Skip to content
Snippets Groups Projects
Commit a7cc7cc6 authored by Stephan Hilb's avatar Stephan Hilb
Browse files

close connectors

parent a198e206
Branches
No related tags found
No related merge requests found
......@@ -193,6 +193,7 @@ function run_while(fwhile, alg)
k += 1
step!(st)
end
close(st)
return st
end
......
......@@ -48,6 +48,7 @@ information to act as a checkpoint for continuing the algorithm at that point.
abstract type State end
function init end
function Base.close(::State) end
function step! end
function fetch end
......
......@@ -88,6 +88,10 @@ function init(alg::DualTVDDAlgorithm{<:DualTVL1ROFOpProblem})
return DualTVDDState(alg, p, subax, cons)
end
function Base.close(st::DualTVDDState)
foreach(close, st.cons)
end
function intersectin(a, b)
c = intersect(a, b)
az = first(a) - one(eltype(a))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment