Skip to content

Commit 0c8d70e

Browse files
committed
for some reason, copy!(a::SparseVector, b::SparseVector) does not work
1 parent 288d2ef commit 0c8d70e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/SparseArrays/src/sparsevector.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,7 @@ end
20072007

20082008

20092009
function circshift!(O::SparseVector, X::SparseVector, (r,)::Base.DimsInteger{1})
2010-
copy!(O, X)
2010+
O .= X
20112011
subvector_shifter!(O.nzind, O.nzval, 1, length(O.nzind), O.n, mod(r, X.n))
20122012
return O
20132013
end

0 commit comments

Comments
 (0)