[Numpy-discussion] difference numpy/matlab

Neal Becker ndbecker2@gmail....
Tue Jan 29 09:49:46 CST 2008


lorenzo bolla wrote:

> I noticed that:
> 
> min([1+1j,-1+3j])
> 
> gives 1+1j in matlab (where for complex, min(abs) is used)
> but gives -1+3j in numpy (where lexicographic order is used)
> 
> shouldn't this be mentioned somewhere in "Numpy for Matlab users" webpage?
> 

It should be stated that they're both wrong.



More information about the Numpy-discussion mailing list