Skip to content

Commit

Permalink
Make tests for zero pivots in sparse ldltfact deterministic
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasnoack committed Feb 16, 2015
1 parent 4f4dd62 commit ab72de8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/sparsedir/cholmod.jl
Original file line number Diff line number Diff line change
@@ -337,8 +337,8 @@ for elty in (Float64, Complex{Float64})
@test_throws ArgumentError cholfact(A1)
@test_throws Base.LinAlg.PosDefException cholfact(A1 + A1' - I)
@test_throws Base.LinAlg.PosDefException cholfact(A1 + A1', -1.0)
@test_throws Base.LinAlg.ArgumentError ldltfact(sprandn(5, 5, 0.2) |> t -> t + t')
@test_throws Base.LinAlg.ArgumentError ldltfact(sprandn(5, 5, 0.2) |> t -> t + t', 0.0)
@test_throws Base.LinAlg.ArgumentError ldltfact(A1 + A1' - 2real(A1[1,1])I)
@test_throws Base.LinAlg.ArgumentError ldltfact(A1 + A1', -2real(A1[1,1]))
@test_throws ArgumentError cholfact(A1)
@test_throws ArgumentError cholfact(A1, 1.0)
@test_throws ArgumentError ldltfact(A1)

0 comments on commit ab72de8

Please sign in to comment.