NUM: inequality with complex dtypes #28050
Labels
Complex
Complex Numbers
good first issue
Needs Tests
Unit test(s) needed to prevent regressions
Numeric Operations
Arithmetic, Comparison, and Logical operations
TL;DR: our comparisons with complex dtypes are not internally consistent:
Digging into this...
numpy has some surprising behavior for comparing complex dtypes:
I would expect these inequalities to be undefined, and in fact, if we cast to object we get a TypeError:
That's the behavior I expected in the first place, but then trying it on just the scalars:
The text was updated successfully, but these errors were encountered: