@@ -31,7 +31,7 @@ function test_alloc()
31
31
expected_symmlq_bytes = storage_symmlq_bytes (n)
32
32
symmlq (L, b) # warmup
33
33
actual_symmlq_bytes = @allocated symmlq (L, b)
34
- @test actual_symmlq_bytes ≤ 1.1 * expected_symmlq_bytes
34
+ @test actual_symmlq_bytes ≤ 1.02 * expected_symmlq_bytes
35
35
36
36
solver = SymmlqSolver (L, b)
37
37
symmlq! (solver, L, b) # warmup
@@ -46,7 +46,7 @@ function test_alloc()
46
46
expected_cg_bytes = storage_cg_bytes (n)
47
47
cg (L, b) # warmup
48
48
actual_cg_bytes = @allocated cg (L, b)
49
- @test actual_cg_bytes ≤ 1.1 * expected_cg_bytes
49
+ @test actual_cg_bytes ≤ 1.02 * expected_cg_bytes
50
50
51
51
solver = CgSolver (L, b)
52
52
cg! (solver, L, b) # warmup
@@ -61,7 +61,7 @@ function test_alloc()
61
61
expected_minres_bytes = storage_minres_bytes (n)
62
62
minres (L, b) # warmup
63
63
actual_minres_bytes = @allocated minres (L, b)
64
- @test actual_minres_bytes ≤ 1.1 * expected_minres_bytes
64
+ @test actual_minres_bytes ≤ 1.02 * expected_minres_bytes
65
65
66
66
solver = MinresSolver (L, b)
67
67
minres! (solver, L, b) # warmup
@@ -78,13 +78,13 @@ function test_alloc()
78
78
storage_diom_bytes (mem, n) = 8 * storage_diom (mem, n)
79
79
80
80
expected_diom_bytes = storage_diom_bytes (mem, n)
81
- diom (A , b, memory= mem) # warmup
82
- actual_diom_bytes = @allocated diom (A , b, memory= mem)
83
- @test actual_diom_bytes ≤ 1.05 * expected_diom_bytes
81
+ diom (L , b, memory= mem) # warmup
82
+ actual_diom_bytes = @allocated diom (L , b, memory= mem)
83
+ @test actual_diom_bytes ≤ 1.02 * expected_diom_bytes
84
84
85
- solver = DiomSolver (A , b)
86
- diom! (solver, A , b) # warmup
87
- inplace_diom_bytes = @allocated diom! (solver, A , b)
85
+ solver = DiomSolver (L , b)
86
+ diom! (solver, L , b) # warmup
87
+ inplace_diom_bytes = @allocated diom! (solver, L , b)
88
88
@test (VERSION < v " 1.5" ) || (inplace_diom_bytes ≤ 240 )
89
89
90
90
# CG_LANCZOS needs:
@@ -93,13 +93,13 @@ function test_alloc()
93
93
storage_cg_lanczos_bytes (n) = 8 * storage_cg_lanczos (n)
94
94
95
95
expected_cg_lanczos_bytes = storage_cg_lanczos_bytes (n)
96
- cg_lanczos (A , b) # warmup
97
- actual_cg_lanczos_bytes = @allocated cg_lanczos (A , b)
98
- @test actual_cg_lanczos_bytes ≤ 1.1 * expected_cg_lanczos_bytes
96
+ cg_lanczos (L , b) # warmup
97
+ actual_cg_lanczos_bytes = @allocated cg_lanczos (L , b)
98
+ @test actual_cg_lanczos_bytes ≤ 1.02 * expected_cg_lanczos_bytes
99
99
100
- solver = CgLanczosSolver (A , b)
101
- cg_lanczos! (solver, A , b) # warmup
102
- inplace_cg_lanczos_bytes = @allocated cg_lanczos! (solver, A , b)
100
+ solver = CgLanczosSolver (L , b)
101
+ cg_lanczos! (solver, L , b) # warmup
102
+ inplace_cg_lanczos_bytes = @allocated cg_lanczos! (solver, L , b)
103
103
@test (VERSION < v " 1.5" ) || (inplace_cg_lanczos_bytes == 144 )
104
104
105
105
# CG_LANCZOS_SHIFT_SEQ needs:
@@ -111,13 +111,13 @@ function test_alloc()
111
111
storage_cg_lanczos_shift_seq_bytes (n, nshifts) = 8 * storage_cg_lanczos_shift_seq (n, nshifts)
112
112
113
113
expected_cg_lanczos_shift_seq_bytes = storage_cg_lanczos_shift_seq_bytes (n, nshifts)
114
- cg_lanczos_shift_seq (A , b, shifts) # warmup
115
- actual_cg_lanczos_shift_seq_bytes = @allocated cg_lanczos_shift_seq (A , b, shifts)
116
- @test actual_cg_lanczos_shift_seq_bytes ≤ 1.1 * expected_cg_lanczos_shift_seq_bytes
114
+ cg_lanczos_shift_seq (L , b, shifts) # warmup
115
+ actual_cg_lanczos_shift_seq_bytes = @allocated cg_lanczos_shift_seq (L , b, shifts)
116
+ @test actual_cg_lanczos_shift_seq_bytes ≤ 1.02 * expected_cg_lanczos_shift_seq_bytes
117
117
118
- solver = CgLanczosShiftSolver (A , b, shifts)
119
- cg_lanczos_shift_seq! (solver, A , b, shifts) # warmup
120
- inplace_cg_lanczos_shift_seq_bytes = @allocated cg_lanczos_shift_seq! (solver, A , b, shifts)
118
+ solver = CgLanczosShiftSolver (L , b, shifts)
119
+ cg_lanczos_shift_seq! (solver, L , b, shifts) # warmup
120
+ inplace_cg_lanczos_shift_seq_bytes = @allocated cg_lanczos_shift_seq! (solver, L , b, shifts)
121
121
@test (VERSION < v " 1.5" ) || (inplace_cg_lanczos_shift_seq_bytes ≤ 356 )
122
122
123
123
# DQGMRES needs:
@@ -129,13 +129,13 @@ function test_alloc()
129
129
storage_dqgmres_bytes (mem, n) = 8 * storage_dqgmres (mem, n)
130
130
131
131
expected_dqgmres_bytes = storage_dqgmres_bytes (mem, n)
132
- dqgmres (A , b, memory= mem) # warmup
133
- actual_dqgmres_bytes = @allocated dqgmres (A , b, memory= mem)
134
- @test actual_dqgmres_bytes ≤ 1.05 * expected_dqgmres_bytes
132
+ dqgmres (L , b, memory= mem) # warmup
133
+ actual_dqgmres_bytes = @allocated dqgmres (L , b, memory= mem)
134
+ @test actual_dqgmres_bytes ≤ 1.02 * expected_dqgmres_bytes
135
135
136
- solver = DqgmresSolver (A , b)
137
- dqgmres! (solver, A , b) # warmup
138
- inplace_dqgmres_bytes = @allocated dqgmres! (solver, A , b)
136
+ solver = DqgmresSolver (L , b)
137
+ dqgmres! (solver, L , b) # warmup
138
+ inplace_dqgmres_bytes = @allocated dqgmres! (solver, L , b)
139
139
@test (VERSION < v " 1.5" ) || (inplace_dqgmres_bytes == 208 )
140
140
141
141
# CR needs:
@@ -146,7 +146,7 @@ function test_alloc()
146
146
expected_cr_bytes = storage_cr_bytes (n)
147
147
cr (L, b, rtol= 1e-6 ) # warmup
148
148
actual_cr_bytes = @allocated cr (L, b, rtol= 1e-6 )
149
- @test actual_cr_bytes ≤ 1.1 * expected_cr_bytes
149
+ @test actual_cr_bytes ≤ 1.02 * expected_cr_bytes
150
150
151
151
solver = CrSolver (L, b)
152
152
cr! (solver, L, b, rtol= 1e-6 ) # warmup
@@ -162,7 +162,7 @@ function test_alloc()
162
162
expected_crmr_bytes = storage_crmr_bytes (n, m)
163
163
(x, stats) = crmr (Au, c) # warmup
164
164
actual_crmr_bytes = @allocated crmr (Au, c)
165
- @test actual_crmr_bytes ≤ 1.1 * expected_crmr_bytes
165
+ @test actual_crmr_bytes ≤ 1.02 * expected_crmr_bytes
166
166
167
167
solver = CrmrSolver (Au, c)
168
168
crmr! (solver, Au, c) # warmup
@@ -177,7 +177,7 @@ function test_alloc()
177
177
expected_cgs_bytes = storage_cgs_bytes (n)
178
178
cgs (L, b) # warmup
179
179
actual_cgs_bytes = @allocated cgs (L, b)
180
- @test actual_cgs_bytes ≤ 1.1 * expected_cgs_bytes
180
+ @test actual_cgs_bytes ≤ 1.02 * expected_cgs_bytes
181
181
182
182
solver = CgsSolver (L, b)
183
183
cgs! (solver, L, b) # warmup
@@ -192,7 +192,7 @@ function test_alloc()
192
192
expected_bicgstab_bytes = storage_bicgstab_bytes (n)
193
193
bicgstab (L, b) # warmup
194
194
actual_bicgstab_bytes = @allocated bicgstab (L, b)
195
- @test actual_bicgstab_bytes ≤ 1.1 * expected_bicgstab_bytes
195
+ @test actual_bicgstab_bytes ≤ 1.02 * expected_bicgstab_bytes
196
196
197
197
solver = BicgstabSolver (L, b)
198
198
bicgstab! (solver, L, b) # warmup
@@ -208,7 +208,7 @@ function test_alloc()
208
208
expected_craigmr_bytes = storage_craigmr_bytes (n, m)
209
209
craigmr (Au, c) # warmup
210
210
actual_craigmr_bytes = @allocated craigmr (Au, c)
211
- @test actual_craigmr_bytes ≤ 1.1 * expected_craigmr_bytes
211
+ @test actual_craigmr_bytes ≤ 1.02 * expected_craigmr_bytes
212
212
213
213
solver = CraigmrSolver (Au, c)
214
214
craigmr! (solver, Au, c) # warmup
@@ -224,7 +224,7 @@ function test_alloc()
224
224
expected_cgne_bytes = storage_cgne_bytes (n, m)
225
225
(x, stats) = cgne (Au, c) # warmup
226
226
actual_cgne_bytes = @allocated cgne (Au, c)
227
- @test actual_cgne_bytes ≤ 1.1 * expected_cgne_bytes
227
+ @test actual_cgne_bytes ≤ 1.02 * expected_cgne_bytes
228
228
229
229
solver = CgneSolver (Au, c)
230
230
cgne! (solver, Au, c) # warmup
@@ -240,7 +240,7 @@ function test_alloc()
240
240
expected_lnlq_bytes = storage_lnlq_bytes (n, m)
241
241
lnlq (Au, c) # warmup
242
242
actual_lnlq_bytes = @allocated lnlq (Au, c)
243
- @test actual_lnlq_bytes ≤ 1.1 * expected_lnlq_bytes
243
+ @test actual_lnlq_bytes ≤ 1.02 * expected_lnlq_bytes
244
244
245
245
solver = LnlqSolver (Au, c)
246
246
lnlq! (solver, Au, c) # warmup
@@ -256,7 +256,7 @@ function test_alloc()
256
256
expected_craig_bytes = storage_craig_bytes (n, m)
257
257
craig (Au, c) # warmup
258
258
actual_craig_bytes = @allocated craig (Au, c)
259
- @test actual_craig_bytes ≤ 1.1 * expected_craig_bytes
259
+ @test actual_craig_bytes ≤ 1.02 * expected_craig_bytes
260
260
261
261
solver = CraigSolver (Au, c)
262
262
craig! (solver, Au, c) # warmup
@@ -272,7 +272,7 @@ function test_alloc()
272
272
expected_lslq_bytes = storage_lslq_bytes (n, m)
273
273
(x, stats) = lslq (Ao, b) # warmup
274
274
actual_lslq_bytes = @allocated lslq (Ao, b)
275
- @test actual_lslq_bytes ≤ 1.1 * expected_lslq_bytes
275
+ @test actual_lslq_bytes ≤ 1.02 * expected_lslq_bytes
276
276
277
277
solver = LslqSolver (Ao, b)
278
278
lslq! (solver, Ao, b) # warmup
@@ -288,7 +288,7 @@ function test_alloc()
288
288
expected_cgls_bytes = storage_cgls_bytes (n, m)
289
289
(x, stats) = cgls (Ao, b) # warmup
290
290
actual_cgls_bytes = @allocated cgls (Ao, b)
291
- @test actual_cgls_bytes ≤ 1.1 * expected_cgls_bytes
291
+ @test actual_cgls_bytes ≤ 1.02 * expected_cgls_bytes
292
292
293
293
solver = CglsSolver (Ao, b)
294
294
cgls! (solver, Ao, b) # warmup
@@ -304,7 +304,7 @@ function test_alloc()
304
304
expected_lsqr_bytes = storage_lsqr_bytes (n, m)
305
305
(x, stats) = lsqr (Ao, b) # warmup
306
306
actual_lsqr_bytes = @allocated lsqr (Ao, b)
307
- @test actual_lsqr_bytes ≤ 1.1 * expected_lsqr_bytes
307
+ @test actual_lsqr_bytes ≤ 1.02 * expected_lsqr_bytes
308
308
309
309
solver = LsqrSolver (Ao, b)
310
310
lsqr! (solver, Ao, b) # warmup
@@ -320,7 +320,7 @@ function test_alloc()
320
320
expected_crls_bytes = storage_crls_bytes (n, m)
321
321
(x, stats) = crls (Ao, b) # warmup
322
322
actual_crls_bytes = @allocated crls (Ao, b)
323
- @test actual_crls_bytes ≤ 1.1 * expected_crls_bytes
323
+ @test actual_crls_bytes ≤ 1.02 * expected_crls_bytes
324
324
325
325
solver = CrlsSolver (Ao, b)
326
326
crls! (solver, Ao, b) # warmup
@@ -336,7 +336,7 @@ function test_alloc()
336
336
expected_lsmr_bytes = storage_lsmr_bytes (n, m)
337
337
(x, stats) = lsmr (Ao, b) # warmup
338
338
actual_lsmr_bytes = @allocated lsmr (Ao, b)
339
- @test actual_lsmr_bytes ≤ 1.1 * expected_lsmr_bytes
339
+ @test actual_lsmr_bytes ≤ 1.02 * expected_lsmr_bytes
340
340
341
341
solver = LsmrSolver (Ao, b)
342
342
lsmr! (solver, Ao, b) # warmup
@@ -352,7 +352,7 @@ function test_alloc()
352
352
expected_usymqr_bytes = storage_usymqr_bytes (n, m)
353
353
(x, stats) = usymqr (Lo, b, c) # warmup
354
354
actual_usymqr_bytes = @allocated usymqr (Lo, b, c)
355
- @test actual_usymqr_bytes ≤ 1.1 * expected_usymqr_bytes
355
+ @test actual_usymqr_bytes ≤ 1.02 * expected_usymqr_bytes
356
356
357
357
solver = UsymqrSolver (Lo, b)
358
358
usymqr! (solver, Lo, b, c) # warmup
@@ -368,7 +368,7 @@ function test_alloc()
368
368
expected_trilqr_bytes = storage_trilqr_bytes (n, n)
369
369
trilqr (L, b, b) # warmup
370
370
actual_trilqr_bytes = @allocated trilqr (L, b, b)
371
- @test actual_trilqr_bytes ≤ 1.1 * expected_trilqr_bytes
371
+ @test actual_trilqr_bytes ≤ 1.02 * expected_trilqr_bytes
372
372
373
373
solver = TrilqrSolver (L, b)
374
374
trilqr! (solver, L, b, b) # warmup
@@ -383,7 +383,7 @@ function test_alloc()
383
383
expected_bilq_bytes = storage_bilq_bytes (n)
384
384
bilq (L, b) # warmup
385
385
actual_bilq_bytes = @allocated bilq (L, b)
386
- @test actual_bilq_bytes ≤ 1.1 * expected_bilq_bytes
386
+ @test actual_bilq_bytes ≤ 1.02 * expected_bilq_bytes
387
387
388
388
solver = BilqSolver (L, b)
389
389
bilq! (solver, L, b) # warmup
@@ -398,7 +398,7 @@ function test_alloc()
398
398
expected_bilqr_bytes = storage_bilqr_bytes (n)
399
399
bilqr (L, b, b) # warmup
400
400
actual_bilqr_bytes = @allocated bilqr (L, b, b)
401
- @test actual_bilqr_bytes ≤ 1.1 * expected_bilqr_bytes
401
+ @test actual_bilqr_bytes ≤ 1.02 * expected_bilqr_bytes
402
402
403
403
solver = BilqrSolver (L, b)
404
404
bilqr! (solver, L, b, b) # warmup
@@ -411,13 +411,13 @@ function test_alloc()
411
411
storage_minres_qlp_bytes (n) = 8 * storage_minres_qlp (n)
412
412
413
413
expected_minres_qlp_bytes = storage_minres_qlp_bytes (n)
414
- minres_qlp (A , b) # warmup
415
- actual_minres_qlp_bytes = @allocated minres_qlp (A , b)
416
- @test actual_minres_qlp_bytes ≤ 1.1 * expected_minres_qlp_bytes
414
+ minres_qlp (L , b) # warmup
415
+ actual_minres_qlp_bytes = @allocated minres_qlp (L , b)
416
+ @test actual_minres_qlp_bytes ≤ 1.02 * expected_minres_qlp_bytes
417
417
418
- solver = MinresQlpSolver (A , b)
419
- minres_qlp! (solver, A , b) # warmup
420
- inplace_minres_qlp_bytes = @allocated minres_qlp! (solver, A , b)
418
+ solver = MinresQlpSolver (L , b)
419
+ minres_qlp! (solver, L , b) # warmup
420
+ inplace_minres_qlp_bytes = @allocated minres_qlp! (solver, L , b)
421
421
@test (VERSION < v " 1.5" ) || (inplace_minres_qlp_bytes == 208 )
422
422
423
423
# QMR needs:
@@ -428,7 +428,7 @@ function test_alloc()
428
428
expected_qmr_bytes = storage_qmr_bytes (n)
429
429
qmr (L, b) # warmup
430
430
actual_qmr_bytes = @allocated qmr (L, b)
431
- @test actual_qmr_bytes ≤ 1.1 * expected_qmr_bytes
431
+ @test actual_qmr_bytes ≤ 1.02 * expected_qmr_bytes
432
432
433
433
solver = QmrSolver (L, b)
434
434
qmr! (solver, L, b) # warmup
@@ -444,7 +444,7 @@ function test_alloc()
444
444
expected_usymlq_bytes = storage_usymlq_bytes (n, m)
445
445
usymlq (Lu, c, b) # warmup
446
446
actual_usymlq_bytes = @allocated usymlq (Lu, c, b)
447
- @test actual_usymlq_bytes ≤ 1.1 * expected_usymlq_bytes
447
+ @test actual_usymlq_bytes ≤ 1.02 * expected_usymlq_bytes
448
448
449
449
solver = UsymlqSolver (Lu, c)
450
450
usymlq! (solver, Lu, c, b) # warmup
@@ -460,7 +460,7 @@ function test_alloc()
460
460
expected_tricg_bytes = storage_tricg_bytes (n, m)
461
461
tricg (Lu, c, b) # warmup
462
462
actual_tricg_bytes = @allocated tricg (Lu, c, b)
463
- @test actual_tricg_bytes ≤ 1.1 * expected_tricg_bytes
463
+ @test actual_tricg_bytes ≤ 1.02 * expected_tricg_bytes
464
464
465
465
solver = TricgSolver (Lu, c)
466
466
tricg! (solver, Lu, c, b) # warmup
@@ -476,7 +476,7 @@ function test_alloc()
476
476
expected_trimr_bytes = storage_trimr_bytes (n, m)
477
477
trimr (Lu, c, b) # warmup
478
478
actual_trimr_bytes = @allocated trimr (Lu, c, b)
479
- @test actual_trimr_bytes ≤ 1.1 * expected_trimr_bytes
479
+ @test actual_trimr_bytes ≤ 1.02 * expected_trimr_bytes
480
480
481
481
solver = TrimrSolver (Lu, c)
482
482
trimr! (solver, Lu, c, b) # warmup
0 commit comments