@@ -7,15 +7,16 @@ import Base.copyto!
7
7
abstract type KrylovStats{T} end
8
8
9
9
"""
10
- Type for statistics returned by the majority of Krylov solvers, the attributes are:
11
- - niter
12
- - solved
13
- - inconsistent
14
- - residuals
15
- - Aresiduals
16
- - Acond
17
- - timer
18
- - status
10
+ Type for storing statistics returned by the majority of Krylov solvers.
11
+ The fields are as follows:
12
+ - `niter`: The total number of iterations completed by the solver;
13
+ - `solved`: Indicates whether the solver successfully reached convergence (`true` if solved, ``false` otherwise);
14
+ - `inconsistent`: Flags whether the system was detected as inconsistent (i.e., when `b` is not in the range of `A`);
15
+ - `residuals`: A vector containing the residual norms at each iteration;
16
+ - `Aresiduals`: A vector of `A'`-residual norms at each iteration;
17
+ - `Acond`: An estimate of the condition number of matrix `A`.
18
+ - `timer`: The elapsed time (in seconds) taken by the solver to complete all iterations;
19
+ - `status`: A string indicating the outcome of the solve, providing additional details beyond `solved`.
19
20
"""
20
21
mutable struct SimpleStats{T} <: KrylovStats{T}
21
22
niter :: Int
@@ -47,7 +48,8 @@ function copyto!(dest :: SimpleStats, src :: SimpleStats)
47
48
end
48
49
49
50
"""
50
- Type for statistics returned by LSMR. The attributes are:
51
+ Type for storing statistics returned by LSMR.
52
+ The fields are as follows:
51
53
- niter
52
54
- solved
53
55
- inconsistent
@@ -96,7 +98,8 @@ function copyto!(dest :: LsmrStats, src :: LsmrStats)
96
98
end
97
99
98
100
"""
99
- Type for statistics returned by CG-LANCZOS, the attributes are:
101
+ Type for storing statistics returned by CG-LANCZOS.
102
+ The fields are as follows:
100
103
- niter
101
104
- solved
102
105
- residuals
@@ -134,7 +137,8 @@ function copyto!(dest :: LanczosStats, src :: LanczosStats)
134
137
end
135
138
136
139
"""
137
- Type for statistics returned by CG-LANCZOS with shifts, the attributes are:
140
+ Type for storing statistics returned by CG-LANCZOS-SHIFT and CGLS-LANCZOS-SHIFT.
141
+ The fields are as follows:
138
142
- niter
139
143
- solved
140
144
- residuals
@@ -174,7 +178,8 @@ function copyto!(dest :: LanczosShiftStats, src :: LanczosShiftStats)
174
178
end
175
179
176
180
"""
177
- Type for statistics returned by SYMMLQ, the attributes are:
181
+ Type for storing statistics returned by SYMMLQ.
182
+ The fields are as follows:
178
183
- niter
179
184
- solved
180
185
- residuals
@@ -221,7 +226,8 @@ function copyto!(dest :: SymmlqStats, src :: SymmlqStats)
221
226
end
222
227
223
228
"""
224
- Type for statistics returned by adjoint systems solvers BiLQR and TriLQR, the attributes are:
229
+ Type for storing statistics returned by adjoint systems solvers BiLQR and TriLQR.
230
+ The fields are as follows:
225
231
- niter
226
232
- solved_primal
227
233
- solved_dual
258
264
259
265
260
266
"""
261
- Type for statistics returned by the LNLQ method, the attributes are:
267
+ Type for storing statistics returned by the LNLQ method.
268
+ The fields are as follows:
262
269
- niter
263
270
- solved
264
271
- residuals
@@ -298,7 +305,8 @@ function copyto!(dest :: LNLQStats, src :: LNLQStats)
298
305
end
299
306
300
307
"""
301
- Type for statistics returned by the LSLQ method, the attributes are:
308
+ Type for storing statistics returned by the LSLQ method.
309
+ The fields are as follows:
302
310
- niter
303
311
- solved
304
312
- inconsistent
0 commit comments