Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Even more tests for sparse #18640

Merged
merged 2 commits into from
Sep 23, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Tests for cholmod
  • Loading branch information
kshyatt committed Sep 22, 2016
commit bb5bf432e59819b932411a00acc1c325a8048199
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