Skip to content

Commit

Permalink
add NEWS.md entry for three-argument rem and rem2pi (#21812)
Browse files Browse the repository at this point in the history
* Add NEWS.md entry for three-argument rem and the new rem2pi (#10946).

* Clarify precise behaviour

(cherry picked from commit 8f9a948)
  • Loading branch information
Sacha0 authored and tkelman committed May 17, 2017
1 parent e6f1f34 commit 5f9a9bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,12 @@ Library improvements
Currently, it is used by default for the new `RowVector` type only, and
enforces that both `transpose(vec)` and `ctranspose(vec)` are views not copies ([#20047]).
* `rem` now accepts a `RoundingMode` argument via `rem(x, y, r::RoundingMode)`, yielding
`x - y*round(x/y, r)` without intermediate rounding. In particular, `rem(x, y, RoundNearest)`
yields a value in the interval `[-abs(y)/2, abs(y)/2]`), which corresponds to the IEE754
`remainder` function. Similarly, `rem2pi(x, r::RoundingMode)` now exists as well, yielding
`rem(x, 2pi, r::RoundingMode)` but with greater accuracy ([#10946]).
* `map[!]` and `broadcast[!]` now have dedicated methods for sparse/structured
vectors/matrices. Specifically, `map[!]` and `broadcast[!]` over combinations including
one or more `SparseVector`, `SparseMatrixCSC`, `Diagonal`, `Bidiagonal`, `Tridiagonal`,
Expand Down Expand Up @@ -537,6 +543,7 @@ Command-line option changes
[#7669]: https://github.com/JuliaLang/julia/issues/7669
[#8974]: https://github.com/JuliaLang/julia/issues/8974
[#9343]: https://github.com/JuliaLang/julia/issues/9343
[#10946]: https://github.com/JuliaLang/julia/issues/10946
[#11250]: https://github.com/JuliaLang/julia/issues/11250
[#11310]: https://github.com/JuliaLang/julia/issues/11310
[#12274]: https://github.com/JuliaLang/julia/issues/12274
Expand Down

0 comments on commit 5f9a9bb

Please sign in to comment.