Skip to content

BUG: floor_divide silently drops imaginary part of complex numbers.#13245

Closed
kaivu1999 wants to merge 1 commit intonumpy:masterfrom
kaivu1999:master
Closed

BUG: floor_divide silently drops imaginary part of complex numbers.#13245
kaivu1999 wants to merge 1 commit intonumpy:masterfrom
kaivu1999:master

Conversation

@kaivu1999
Copy link
Copy Markdown

@kaivu1999 kaivu1999 commented Apr 2, 2019

Removed floor_divide for complex numbers.
Deleted the function from numpy/core/src/umath/loops.c.src
And removed complex type for floor_divide in numpy/core/code_generators/generate_umath.py

Closes #13236.

@charris charris changed the title Fixes #13236 ENH: floor_divide silently drops imaginary part of complex numbers. Apr 2, 2019
@charris charris changed the title ENH: floor_divide silently drops imaginary part of complex numbers. BUG: floor_divide silently drops imaginary part of complex numbers. Apr 2, 2019
@charris
Copy link
Copy Markdown
Member

charris commented Apr 2, 2019

Failing tests, you should now be checking to see if TypeError is raised. @tylerjereddy The azure tests are failing just like the travis tests, but the failures are not being reported back. I suspect #13217, probably the failTaskOnFailedTests: false setting.

@charris
Copy link
Copy Markdown
Member

charris commented Apr 2, 2019

I think this should be discussed on the mailing list, perhaps we should issue a warning instead.

@charris
Copy link
Copy Markdown
Member

charris commented Apr 2, 2019

Going to close/reopen to test #13253.

@mattip
Copy link
Copy Markdown
Member

mattip commented Apr 27, 2019

Needs to fix failing tests and needs a release note.

@mattip mattip added the 56 - Needs Release Note. Needs an entry in doc/release/upcoming_changes label Apr 27, 2019
@charris charris removed the 09 - Backport-Candidate PRs tagged should be backported label Apr 17, 2020
@Qiyu8
Copy link
Copy Markdown
Member

Qiyu8 commented May 27, 2020

@kaivu1999 Looks like you are not working on this PR anymore, I will close this PR, Feel free to reopen.

@Qiyu8 Qiyu8 closed this May 27, 2020
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.

np.floor_divide drops imaginary part silently

5 participants