Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "SparseMatricesCSR"
uuid = "a0a7dd2c-ebf4-11e9-1f05-cf50bc540ca1"
authors = ["Víctor Sande <vsande@cimne.upc.edu>", "Francesc Verdugo <fverdugo@cimne.upc.edu>"]
version = "0.6.8"
version = "0.6.9"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand Down
4 changes: 4 additions & 0 deletions src/SymSparseMatrixCSR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,3 +206,7 @@ function Base.convert(
utrian = convert(SparseMatrixCSR{Bi,Tv,Ti},a.uppertrian)
SymSparseMatrixCSR(utrian)
end

function Base.copy(a::SymSparseMatrixCSR{Bi,T,Ti}) where {Bi,T,Ti}
SymSparseMatrixCSR{Bi,T,Ti}(copy(a.uppertrian))
end
2 changes: 2 additions & 0 deletions test/SymSparseMatrixCSR.jl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ function test_csr(Bi,Tv,Ti)
@test CSR == CSC
CSR = symsparsecsr(copy(I),copy(J),copy(V);symmetrize=true)
@test CSR == CSC
CSR = copy(symsparsecsr(copy(I),copy(J),copy(V);symmetrize=true))
@test CSR == CSC
end

CSR = symsparsecsr(Val(Bi),I_up,J_up,V_up)
Expand Down
Loading