Skip to content

Commit

Permalink
for some reason, copy!(a::SparseVector, b::SparseVector) does not work
Browse files Browse the repository at this point in the history
  • Loading branch information
abraunst committed Dec 24, 2018
1 parent 288d2ef commit 0c8d70e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/SparseArrays/src/sparsevector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2007,7 +2007,7 @@ end


function circshift!(O::SparseVector, X::SparseVector, (r,)::Base.DimsInteger{1})
copy!(O, X)
O .= X
subvector_shifter!(O.nzind, O.nzval, 1, length(O.nzind), O.n, mod(r, X.n))
return O
end
Expand Down

0 comments on commit 0c8d70e

Please sign in to comment.