Skip to content

Commit 7d7bdf7

Browse files
committed
Test the backward error, not the forward error
1 parent bb934a0 commit 7d7bdf7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

test/runtests.jl

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@ import LinearAlgebra
55
baselu = LinearAlgebra.lu
66
mylu = RecursiveFactorization.lu
77

8-
function testlu(MF, BF)
8+
function testlu(A, MF, BF)
99
@test MF.info == BF.info
10-
@test MF.L BF.L
11-
@test MF.U BF.U
12-
@test MF.P BF.P
10+
@test MF.P == BF.P
11+
@test MF.L*MF.U A[MF.p, :]
1312
nothing
1413
end
1514

@@ -18,12 +17,12 @@ end
1817
A = rand(100, 100)
1918
MF = mylu(A, p)
2019
BF = baselu(A, p)
21-
testlu(MF, BF)
20+
testlu(A, MF, BF)
2221
for i in 1:100
2322
A[:, i] .= 0
2423
MF = mylu(A, p, check=false)
2524
BF = baselu(A, p, check=false)
26-
testlu(MF, BF)
25+
testlu(A, MF, BF)
2726
end
2827
end
2928
end

0 commit comments

Comments
 (0)