File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -2,18 +2,22 @@ using LinearSolve
2
2
using Test
3
3
4
4
@testset " LinearSolve.jl" begin
5
- A = rand (5 , 5 )
6
- b = rand (5 )
5
+ n = 10
6
+ A = rand (n, n)
7
+ b = rand (n)
7
8
prob = LinearProblem (A, b)
8
9
10
+ x = rand (n)
11
+
9
12
# Factorization
10
- @test A * solve (prob, LUFactorization (); alias_A = false , alias_b = false ) ≈
11
- b
12
- @test A * solve (prob, QRFactorization (); alias_A = false , alias_b = false ) ≈
13
- b
14
- @test A *
15
- solve (prob, SVDFactorization (); alias_A = false , alias_b = false ) ≈ b
13
+ @test A * solve (prob, LUFactorization ();) ≈ b
14
+ @test A * solve (prob, QRFactorization ();) ≈ b
15
+ @test A * solve (prob, SVDFactorization ();) ≈ b
16
16
17
17
# Krylov
18
18
@test A * solve (prob, KrylovJL (A, b)) ≈ b
19
+
20
+ # make algorithm callable - interoperable with DiffEq ecosystem
21
+ @test A * LUFactorization ()(x,A,b) ≈ b
22
+ @test_broken A * x ≈ b # in place
19
23
end
You can’t perform that action at this time.
0 commit comments