11using LinearSolve, LinearAlgebra, SparseArrays, Test, JET
22@test LinearSolve. defaultalg (nothing , zeros (3 )). alg ===
33 LinearSolve. DefaultAlgorithmChoice. GenericLUFactorization
4+ prob = LinearProblem (rand (3 ,3 ), rand (3 ))
5+ solve (prob)
6+
47@test LinearSolve. defaultalg (nothing , zeros (50 )). alg ===
58 LinearSolve. DefaultAlgorithmChoice. RFLUFactorization
9+ prob = LinearProblem (rand (50 ,50 ), rand (50 ))
10+ solve (prob)
11+
612@test LinearSolve. defaultalg (nothing , zeros (600 )). alg ===
713 LinearSolve. DefaultAlgorithmChoice. GenericLUFactorization
14+ prob = LinearProblem (rand (600 ,600 ), rand (600 ))
15+ solve (prob)
16+
817@test LinearSolve. defaultalg (LinearAlgebra. Diagonal (zeros (5 )), zeros (5 )). alg ===
918 LinearSolve. DefaultAlgorithmChoice. DiagonalFactorization
1019
@@ -14,8 +23,15 @@ using LinearSolve, LinearAlgebra, SparseArrays, Test, JET
1423
1524@test LinearSolve. defaultalg (sprand (1000 , 1000 , 0.01 ), zeros (1000 )). alg ===
1625 LinearSolve. DefaultAlgorithmChoice. KLUFactorization
26+ prob = LinearProblem (sprand (1000 , 1000 , 0.01 ), zeros (1000 ))
27+ solve (prob)
28+
1729@test LinearSolve. defaultalg (sprand (11000 , 11000 , 0.001 ), zeros (11000 )). alg ===
1830 LinearSolve. DefaultAlgorithmChoice. UMFPACKFactorization
31+ prob = LinearProblem (sprand (11000 , 11000 , 0.001 ), zeros (11000 ))
32+ solve (prob)
33+
34+
1935
2036@static if VERSION >= v " v1.7-"
2137 # Test inference
0 commit comments