[Numpy-discussion] difference numpy/matlab

lorenzo bolla lbolla at gmail.com
Tue Jan 29 05:32:10 EST 2008


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?

-- 
Lorenzo Bolla
lbolla at gmail.com
http://lorenzobolla.emurse.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20080129/42f07025/attachment.html>


More information about the NumPy-Discussion mailing list