We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb934a0 commit 7d7bdf7Copy full SHA for 7d7bdf7
test/runtests.jl
@@ -5,11 +5,10 @@ import LinearAlgebra
5
baselu = LinearAlgebra.lu
6
mylu = RecursiveFactorization.lu
7
8
-function testlu(MF, BF)
+function testlu(A, MF, BF)
9
@test MF.info == BF.info
10
- @test MF.L ≈ BF.L
11
- @test MF.U ≈ BF.U
12
- @test MF.P ≈ BF.P
+ @test MF.P == BF.P
+ @test MF.L*MF.U ≈ A[MF.p, :]
13
nothing
14
end
15
@@ -18,12 +17,12 @@ end
18
17
A = rand(100, 100)
19
MF = mylu(A, p)
20
BF = baselu(A, p)
21
- testlu(MF, BF)
+ testlu(A, MF, BF)
22
for i in 1:100
23
A[:, i] .= 0
24
MF = mylu(A, p, check=false)
25
BF = baselu(A, p, check=false)
26
27
28
29
0 commit comments