summaryrefslogtreecommitdiff
path: root/doc/release/upcoming_changes/14981.compatibility.rst
blob: 90cf866f21b4b82cc93d3251ba02fec230a6d6ea (plain)
1
2
3
4
5
6
7
8
9
10
`np.ediff1d` casting behaviour with ``to_end`` and ``to_begin``
---------------------------------------------------------------

`np.ediff1d` now uses the ``"same_kind"`` casting rule for
its additional ``to_end`` and ``to_begin`` arguments. This
ensures type safety except when the input array has a smaller
integer type than ``to_begin`` or ``to_end``.
In rare cases, the behaviour will be more strict than it was
previously in 1.16 and 1.17. This is necessary to solve issues
with floating point NaN.