Skip to content

Commit

Permalink
Tests for cholmod
Browse files Browse the repository at this point in the history
  • Loading branch information
kshyatt committed Sep 22, 2016
1 parent a06314b commit bb5bf43
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/sparsedir/cholmod.jl
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ chma = ldltfact(A) # LDL' form
x = chma\B
@test x ones(size(x))
@test nnz(ldltfact(A, perm=1:size(A,1))) > nnz(chma)
@test size(chma) == size(A)
chmal = CHOLMOD.FactorComponent(chma, :L)
@test size(chmal) == size(A)
@test size(chmal, 1) == size(A, 1)

chma = cholfact(A) # LL' form
@test CHOLMOD.isvalid(chma)
Expand All @@ -115,6 +119,10 @@ x = chma\B
@test x ones(size(x))
@test nnz(chma) == 489
@test nnz(cholfact(A, perm=1:size(A,1))) > nnz(chma)
@test size(chma) == size(A)
chmal = CHOLMOD.FactorComponent(chma, :L)
@test size(chmal) == size(A)
@test size(chmal, 1) == size(A, 1)

#lp_afiro example
afiro = CHOLMOD.Sparse(27, 51,
Expand Down

0 comments on commit bb5bf43

Please sign in to comment.