Closed
Description
Since there is no ordering in the complex numbers, vanilla Python correctly rejects something like
0 < 1 + 1j
with
TypeError: '<' not supported between instances of 'int' and 'complex'
Numpy incorrectly does something -- no idea what though. In any case, the following should probably fail:
import numpy
z = 1 + 1j
0 < numpy.array(z) # succeeds?!
Metadata
Metadata
Assignees
Labels
No labels