Skip to content

Commit 97ec3a1

Browse files
committed
Tests (besides "ambiguous")
1 parent bf83a7c commit 97ec3a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/sparsematrix.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,10 @@ end
752752
# converting between SparseMatrixCSC types
753753

754754
AbstractMatrix{Tv}(A::AbstractSparseMatrixCSC) where {Tv} = SparseMatrixCSC{Tv}(A)
755-
SparseMatrixCSC{Tv}(S::AbstractSparseMatrixCSC{Tv}) where {Tv} = copy(S)
755+
SparseMatrixCSC{Tv}(S::AbstractSparseMatrixCSC) where {Tv} = SparseMatrixCSC{Tv}(S)
756756
SparseMatrixCSC{Tv}(S::AbstractSparseMatrixCSC) where {Tv} = SparseMatrixCSC{Tv,eltype(getcolptr(S))}(S)
757+
SparseMatrixCSC(S::SparseMatrixCSC)=copy(S)
758+
757759

758760
function SparseMatrixCSC{Tv,Ti}(S::AbstractSparseMatrixCSC) where {Tv,Ti}
759761
eltypeTicolptr = Vector{Ti}(getcolptr(S))

0 commit comments

Comments
 (0)