diff options
author | Tyler Reddy <tyler.je.reddy@gmail.com> | 2019-01-09 11:52:03 -0800 |
---|---|---|
committer | Tyler Reddy <tyler.je.reddy@gmail.com> | 2019-01-17 18:54:13 -0800 |
commit | 4b81a240a4ffffea8a502afbdea43d8bf2991228 (patch) | |
tree | 12de7ad345b90509158ae5c0a1797c0343595ec6 /doc | |
parent | df54ff86105288ca2fabdf410c3b415399276e2c (diff) | |
download | numpy-4b81a240a4ffffea8a502afbdea43d8bf2991228.tar.gz |
ENH: add mm->qm divmod
* add timedelta64 divmod inner
loop with type signature mm->qm
* also adjusted typecasting in
mm_q floor division to match the
approach used here (should not
change any behavior)
Diffstat (limited to 'doc')
-rw-r--r-- | doc/release/1.17.0-notes.rst | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/release/1.17.0-notes.rst b/doc/release/1.17.0-notes.rst index c79c966c7..5d13fd5ff 100644 --- a/doc/release/1.17.0-notes.rst +++ b/doc/release/1.17.0-notes.rst @@ -50,6 +50,11 @@ identity, it is necessary to also pass in an initial value (e.g., These functions now accept a ``hermitian`` argument, matching the one added to ``np.linalg.matrix_rank`` in 1.14.0. +divmod operation is now supported for two ``timedelta64`` operands +------------------------------------------------------------------ +The divmod operator now handles two ``np.timedelta64`` operands, with +type signature mm->qm. + Improvements ============ @@ -91,3 +96,8 @@ Changes `numpy.median`, `numpy.percentile`, and `numpy.quantile` used to emit a ``RuntimeWarning`` when encountering an `numpy.nan`. Since they return the ``nan`` value, the warning is redundant and has been removed. + +``timedelta64 % 0`` behavior adjusted to return ``NaT`` +------------------------------------------------------- +The modulus operation with two ``np.timedelta64`` operands now returns +``NaT`` in the case of division by zero, rather than returning zero |