Skip to content

Commit

Permalink
Merge pull request #17404 from Sacha0/reworksetindex
Browse files Browse the repository at this point in the history
Make setindex! for sparse matrices and vectors not purge stored entries on zero assignment
  • Loading branch information
tkelman authored Jul 19, 2016
2 parents c2e3494 + 59d3d7c commit 3647de6
Show file tree
Hide file tree
Showing 5 changed files with 378 additions and 148 deletions.
5 changes: 5 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ Library improvements
* All `sparse` methods now retain provided numerical zeros as structural nonzeros; to
drop numerical zeros, use `dropzeros!` ([#14798], [#15242]).

* `setindex!` methods for sparse matrices and vectors no longer purge allocated entries
on zero assignment. To drop stored entries from sparse matrices and vectors, use
`Base.SparseArrays.dropstored!` ([#17404]).

* New `foreach` function for calling a function on every element of a collection when
the results are not needed ([#13774]).

Expand Down Expand Up @@ -350,3 +354,4 @@ Deprecated or removed
[#17374]: https://github.com/JuliaLang/julia/issues/17374
[#17393]: https://github.com/JuliaLang/julia/issues/17393
[#17402]: https://github.com/JuliaLang/julia/issues/17402
[#17404]: https://github.com/JuliaLang/julia/issues/17404
Loading

0 comments on commit 3647de6

Please sign in to comment.