Skip to content

Navigation Menu

Sign in
Appearance settings
Sign up
Appearance settings

ENH: Add mm->qm divmod - #12820

#12820
Merged
charris merged 2 commits into
numpy:maintenance/1.16.xnumpy/numpy:maintenance/1.16.xfrom
charris:backport-12683charris/numpy:backport-12683Copy head branch name to clipboard
Jan 22, 2019
Merged

ENH: Add mm->qm divmod#12820
charris merged 2 commits into
numpy:maintenance/1.16.xnumpy/numpy:maintenance/1.16.xfrom
charris:backport-12683charris/numpy:backport-12683Copy head branch name to clipboard

Conversation

@charris

@charris charris commented Jan 21, 2019

Copy link
Copy Markdown
Member

Backport of #12683.

* modulus operation with two timedelta64
operands now returns NaT in the case of
division by zero, rather than returning
zero
* 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)
@charris charris added this to the 1.16.1 release milestone Jan 21, 2019
@charris
charris merged commit 95cc44a into numpy:maintenance/1.16.x Jan 22, 2019
@charris
charris deleted the backport-12683 branch January 22, 2019 03:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.