@@ -200,27 +200,33 @@ end
200200 end
201201 end
202202
203- @testset " Concrete Factorizations" begin for alg in (LUFactorization (),
204- QRFactorization (),
205- SVDFactorization (),
206- RFLUFactorization ())
207- @testset " $alg " begin test_interface (alg, prob1, prob2) end
208- end end
209-
210- @testset " Generic Factorizations" begin for fact_alg in (lu, lu!,
211- qr, qr!,
212- cholesky,
213- # cholesky!,
214- # ldlt, ldlt!,
215- bunchkaufman, bunchkaufman!,
216- lq, lq!,
217- svd, svd!,
218- LinearAlgebra. factorize)
219- @testset " fact_alg = $fact_alg " begin
220- alg = GenericFactorization (fact_alg = fact_alg)
221- test_interface (alg, prob1, prob2)
203+ @testset " Concrete Factorizations" begin
204+ for alg in (LUFactorization (),
205+ QRFactorization (),
206+ SVDFactorization (),
207+ RFLUFactorization ())
208+ @testset " $alg " begin
209+ test_interface (alg, prob1, prob2)
210+ end
222211 end
223- end end
212+ end
213+
214+ @testset " Generic Factorizations" begin
215+ for fact_alg in (lu, lu!,
216+ qr, qr!,
217+ cholesky,
218+ # cholesky!,
219+ # ldlt, ldlt!,
220+ bunchkaufman, bunchkaufman!,
221+ lq, lq!,
222+ svd, svd!,
223+ LinearAlgebra. factorize)
224+ @testset " fact_alg = $fact_alg " begin
225+ alg = GenericFactorization (fact_alg = fact_alg)
226+ test_interface (alg, prob1, prob2)
227+ end
228+ end
229+ end
224230
225231 @testset " KrylovJL" begin
226232 kwargs = (; gmres_restart = 5 )
229235 (" GMRES" , KrylovJL_GMRES (kwargs... )),
230236 # ("BICGSTAB",KrylovJL_BICGSTAB(kwargs...)),
231237 (" MINRES" , KrylovJL_MINRES (kwargs... )))
232- @testset " $(alg[1 ]) " begin test_interface (alg[2 ], prob1, prob2) end
238+ @testset " $(alg[1 ]) " begin
239+ test_interface (alg[2 ], prob1, prob2)
240+ end
233241 end
234242 end
235243
242250 # ("BICGSTAB",IterativeSolversJL_BICGSTAB(kwargs...)),
243251 # ("MINRES",IterativeSolversJL_MINRES(kwargs...)),
244252 )
245- @testset " $(alg[1 ]) " begin test_interface (alg[2 ], prob1, prob2) end
253+ @testset " $(alg[1 ]) " begin
254+ test_interface (alg[2 ], prob1, prob2)
255+ end
246256 end
247257 end
248258 end
252262 for alg in ((" Default" , KrylovKitJL (kwargs... )),
253263 (" CG" , KrylovKitJL_CG (kwargs... )),
254264 (" GMRES" , KrylovKitJL_GMRES (kwargs... )))
255- @testset " $(alg[1 ]) " begin test_interface (alg[2 ], prob1, prob2) end
265+ @testset " $(alg[1 ]) " begin
266+ test_interface (alg[2 ], prob1, prob2)
267+ end
256268 @test alg[2 ] isa KrylovKitJL
257269 end
258270 end
0 commit comments