diff options
author | Matti Picus <matti.picus@gmail.com> | 2020-08-02 16:23:33 +0300 |
---|---|---|
committer | Ross Barnowski <rossbar@berkeley.edu> | 2020-08-03 15:22:42 -0700 |
commit | 1345286b67bea1efa873e79654f8a8609f1ce8f7 (patch) | |
tree | a4409d77875cbc1e2d674b3bf8fae1b61c8cc74e | |
parent | 3cb6820c7e0b3ebf0afe10456aaadc1ba2618dea (diff) | |
download | numpy-1345286b67bea1efa873e79654f8a8609f1ce8f7.tar.gz |
Update 16841.changes.rst
reword the release note
-rw-r--r-- | doc/release/upcoming_changes/16841.changes.rst | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/release/upcoming_changes/16841.changes.rst b/doc/release/upcoming_changes/16841.changes.rst index 3408c091f..26efd2528 100644 --- a/doc/release/upcoming_changes/16841.changes.rst +++ b/doc/release/upcoming_changes/16841.changes.rst @@ -1,4 +1,5 @@ -Output if ``dtype`` of ``linspace`` is int ----------------------------------------------------- -- If the ``dtype`` of the ``linspace`` is int, round down it and casted it. -- To use it, write ``np.linspace(..., dtype=np.int)``
\ No newline at end of file +`np.linspace` on integers now use floor +--------------------------------------- +When using a `int` dtype in `np.linspace`, previously float values would +be rounded towards zero. Now `np.floor` is used instead, which rounds toward +``-inf``. This changes the results for negative values. |