120120function cg_iterator! (x, A, b, Pl = Identity ();
121121 abstol:: Real = zero (real (eltype (b))),
122122 reltol:: Real = sqrt (eps (real (eltype (b)))),
123- tol = nothing , # TODO : Deprecations introduced in v0.8
124123 maxiter:: Int = size (A, 2 ),
125124 statevars:: CGStateVariables = CGStateVariables (zero (x), similar (x), similar (x)),
126125 initially_zero:: Bool = false )
@@ -130,12 +129,6 @@ function cg_iterator!(x, A, b, Pl = Identity();
130129 u .= zero (eltype (x))
131130 copyto! (r, b)
132131
133- # TODO : Deprecations introduced in v0.8
134- if tol != = nothing
135- Base. depwarn (" The keyword argument `tol` is deprecated, use `reltol` instead." , :cg_iterator! )
136- reltol = tol
137- end
138-
139132 # Compute r with an MV-product or not.
140133 if initially_zero
141134 mv_products = 0
@@ -213,7 +206,6 @@ cg(A, b; kwargs...) = cg!(zerox(A, b), A, b; initially_zero = true, kwargs...)
213206function cg! (x, A, b;
214207 abstol:: Real = zero (real (eltype (b))),
215208 reltol:: Real = sqrt (eps (real (eltype (b)))),
216- tol = nothing , # TODO : Deprecations introduced in v0.8
217209 maxiter:: Int = size (A, 2 ),
218210 log:: Bool = false ,
219211 statevars:: CGStateVariables = CGStateVariables (zero (x), similar (x), similar (x)),
@@ -225,12 +217,6 @@ function cg!(x, A, b;
225217 history[:reltol ] = reltol
226218 log && reserve! (history, :resnorm , maxiter + 1 )
227219
228- # TODO : Deprecations introduced in v0.8
229- if tol != = nothing
230- Base. depwarn (" The keyword argument `tol` is deprecated, use `reltol` instead." , :cg! )
231- reltol = tol
232- end
233-
234220 # Actually perform CG
235221 iterable = cg_iterator! (x, A, b, Pl; abstol = abstol, reltol = reltol, maxiter = maxiter,
236222 statevars = statevars, kwargs... )
0 commit comments