[Numpy-discussion] difference numpy/matlab

lorenzo bolla lbolla@gmail....
Tue Jan 29 04:32:10 CST 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@gmail.com
http://lorenzobolla.emurse.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20080129/42f07025/attachment.html 


More information about the Numpy-discussion mailing list