[Numpy-discussion] Max on Complex Array

2007-12-06 Thread Tom Johnson
What is the meaning of numpy's maximum on a complex-valued array? ___ Numpy-discussion mailing list Numpy-discussion@scipy.org http://projects.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] Max on Complex Array

2007-12-06 Thread Robert Kern
Tom Johnson wrote: What is the meaning of numpy's maximum on a complex-valued array? We impose a lexicographical ordering on the complex space. Complex numbers are compared first by their real component and then, if the real components are equal, by their imaginary component. In [1]: from

Re: [Numpy-discussion] Max on Complex Array

2007-12-06 Thread Tom Johnson
On Dec 6, 2007 3:23 PM, Robert Kern [EMAIL PROTECTED] wrote: Tom Johnson wrote: What is the meaning of numpy's maximum on a complex-valued array? We impose a lexicographical ordering on the complex space. Good to know, but is this documented somewhere. a.max? does not mention this.