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
Prev Previous commit
Tests for conj! and spdiagm
  • Loading branch information
kshyatt committed Sep 22, 2016
commit dd51dc3d4ce55277f99286c796a7c646fdb66060
2 changes: 2 additions & 0 deletions test/sparsedir/sparse.jl
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,7 @@ end
# conj
cA = sprandn(5,5,0.2) + im*sprandn(5,5,0.2)
@test full(conj.(cA)) == conj(full(cA))
@test full(conj!(copy(cA))) == conj(full(cA))

# Test SparseMatrixCSC [c]transpose[!] and permute[!] methods
let smalldim = 5, largedim = 10, nzprob = 0.4
Expand Down Expand Up @@ -401,6 +402,7 @@ end
# spdiagm
@test full(spdiagm((ones(2), ones(2)), (0, -1), 3, 3)) ==
[1.0 0.0 0.0; 1.0 1.0 0.0; 0.0 1.0 0.0]
@test full(spdiagm(ones(2), -1, 3, 3)) == diagm(ones(2), -1)

# issue #4986, reinterpret
sfe22 = speye(Float64, 2)
Expand Down