@@ -68,7 +68,7 @@ mutable struct PDataKARC{S, T, Fatol, Frtol} <: PDataIter{T}
6868 norm_dirs:: Array{T, 1} # norms of xShifts
6969 OK:: Bool # preprocess success
7070
71- solver:: CgLanczosShiftSolver {T, T, S}
71+ solver:: CgLanczosShiftWorkspace {T, T, S}
7272end
7373
7474function PDataKARC (
@@ -95,7 +95,7 @@ function PDataKARC(
9595 end
9696 norm_dirs = S (undef, nshifts)
9797 OK = true
98- solver = CgLanczosShiftSolver (n, n, nshifts, S)
98+ solver = CgLanczosShiftWorkspace (n, n, nshifts, S)
9999 return PDataKARC (
100100 d,
101101 λ,
@@ -139,7 +139,7 @@ mutable struct PDataTRK{S, T, Fatol, Frtol} <: PDataIter{T}
139139 norm_dirs:: Array{T, 1} # norms of xShifts
140140 OK:: Bool # preprocess success
141141
142- solver:: CgLanczosShiftSolver {T, T, S}
142+ solver:: CgLanczosShiftWorkspace {T, T, S}
143143end
144144
145145function PDataTRK (
@@ -166,7 +166,7 @@ function PDataTRK(
166166 end
167167 norm_dirs = S (undef, nshifts)
168168 OK = true
169- solver = CgLanczosShiftSolver (n, n, nshifts, S)
169+ solver = CgLanczosShiftWorkspace (n, n, nshifts, S)
170170 return PDataTRK (
171171 d,
172172 λ,
@@ -202,7 +202,7 @@ mutable struct PDataST{S, T, Fatol, Frtol} <: PDataIter{T}
202202 cgrtol:: Frtol
203203
204204 OK:: Bool # preprocess success
205- solver:: CgSolver {T, T, S}
205+ solver:: CgWorkspace {T, T, S}
206206end
207207
208208function PDataST (
@@ -220,7 +220,7 @@ function PDataST(
220220 d = S (undef, n)
221221 λ = zero (T)
222222 OK = true
223- solver = CgSolver (n, n, S)
223+ solver = CgWorkspace (n, n, S)
224224 return PDataST (d, λ, ζ, ξ, maxtol, mintol, cgatol, cgrtol, OK, solver)
225225end
226226
@@ -239,7 +239,7 @@ mutable struct PDataNLSST{S, T, Fatol, Frtol} <: PDataIterLS{T}
239239 cgrtol:: Frtol
240240
241241 OK:: Bool # preprocess success
242- solver:: Union{CglsSolver {T, T, S}, LsqrSolver {T, T, S}}
242+ solver:: Union{CglsWorkspace {T, T, S}, LsqrWorkspace {T, T, S}}
243243end
244244
245245function PDataNLSST (
@@ -260,9 +260,9 @@ function PDataNLSST(
260260 λ = zero (T)
261261 OK = true
262262 solver = if solver_method == :cgls
263- CglsSolver (m, n, S)
263+ CglsWorkspace (m, n, S)
264264 else
265- LsqrSolver (m, n, S)
265+ LsqrWorkspace (m, n, S)
266266 end
267267 return PDataNLSST (d, λ, ζ, ξ, maxtol, mintol, cgatol, cgrtol, OK, solver)
268268end
0 commit comments