Re: [Numpy-discussion] Building Windows binaries on OS X

2010-02-09 Thread Ralf Gommers
On Tue, Feb 9, 2010 at 9:54 AM, David Cournapeau courn...@gmail.com wrote: On Mon, Feb 8, 2010 at 9:14 PM, Ralf Gommers ralf.gomm...@googlemail.com wrote: Hi David and all, I have a few questions on setting up the build environment on OS X for Windows binaries. I have Wine installed

[Numpy-discussion] Utility function to find array items are in ascending order

2010-02-09 Thread Vishal Rana
Hi, Is there any utility function to find if values in the array are in ascending or descending order. Example: arr = [1, 2, 4, 6] should return true arr2 = [1, 0, 2, -2] should return false Thanks Vishal ___ NumPy-Discussion mailing list

Re: [Numpy-discussion] Utility function to find array items are in ascending order

2010-02-09 Thread Keith Goodman
On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana ranavis...@gmail.com wrote: Hi, Is there any utility function to find if values in the array are in ascending or descending order. Example: arr = [1, 2, 4, 6] should return true arr2 = [1, 0, 2, -2] should return false Thanks Vishal I don't know

Re: [Numpy-discussion] Utility function to find array items are in ascending order

2010-02-09 Thread Brent Pedersen
On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana ranavis...@gmail.com wrote: Hi, Is there any utility function to find if values in the array are in ascending or descending order. Example: arr = [1, 2, 4, 6] should return true arr2 = [1, 0, 2, -2] should return false Thanks Vishal

Re: [Numpy-discussion] Utility function to find array items are in ascending order

2010-02-09 Thread Keith Goodman
On Tue, Feb 9, 2010 at 7:51 AM, Brent Pedersen bpede...@gmail.com wrote: On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana ranavis...@gmail.com wrote: Hi, Is there any utility function to find if values in the array are in ascending or descending order. Example: arr = [1, 2, 4, 6] should return

Re: [Numpy-discussion] Utility function to find array items are in ascending order

2010-02-09 Thread Vishal Rana
Thanks On Tue, Feb 9, 2010 at 7:51 AM, Brent Pedersen bpede...@gmail.com wrote: On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana ranavis...@gmail.com wrote: Hi, Is there any utility function to find if values in the array are in ascending or descending order. Example: arr = [1, 2, 4, 6]

[Numpy-discussion] Emulate left outer join?

2010-02-09 Thread David Carmean
Hi, I've been working with numpy for less than a month, having learned about it after finding matplotlib. My foundation in things like set theory is... weak to nonexistent, so I need a little help mapping sql-like thoughts into set-theory thinking :) Some context to help me explain: I'm

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 15:52, David Carmean d...@halibut.com wrote: Hi, I've been working with numpy for less than a month, having learned about it after finding matplotlib.  My foundation in things like set theory is... weak to nonexistent, so I need a little help mapping sql-like thoughts

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Fernando Perez
On Tue, Feb 9, 2010 at 5:02 PM, Robert Kern robert.k...@gmail.com wrote: numpy.lib.recfunctions.join_by(key, r1, r2, jointype='leftouter') And if that isn't sufficient, John has in matplotlib.mlab a few other similar utilities that allow for more complex cases: In [2]: mlab.rec_

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 4:43 PM, Fernando Perez fperez@gmail.com wrote: On Tue, Feb 9, 2010 at 5:02 PM, Robert Kern robert.k...@gmail.com wrote: numpy.lib.recfunctions.join_by(key, r1, r2, jointype='leftouter') And if that isn't sufficient, John has in matplotlib.mlab a few other similar

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread David Warde-Farley
On 9-Feb-10, at 5:02 PM, Robert Kern wrote: Examples? Pointers? Shoves toward the correct sections of the docs? numpy.lib.recfunctions.join_by(key, r1, r2, jointype='leftouter') Huh. All these years, how have I missed this? Yet another demonstration of why my never skip over a Kern posting

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For some reason, numpy.lib.recfunctions isn't in the documentation editor. I'm not sure why. Because it's not in np.lib.__all__ . Then

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread josef . pktd
On Tue, Feb 9, 2010 at 6:52 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For some reason, numpy.lib.recfunctions isn't in the

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 18:02, josef.p...@gmail.com wrote: On Tue, Feb 9, 2010 at 6:52 PM, Robert Kern robert.k...@gmail.com wrote: On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Pierre GM
On Feb 9, 2010, at 6:52 PM, Robert Kern wrote: On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For some reason, numpy.lib.recfunctions isn't in the documentation editor. I'm not

[Numpy-discussion] numpy.polynomial.chebyshev (not) in the docs

2010-02-09 Thread josef . pktd
Similar to the recfunctions, I also don't find the new chebychev polynomials in the docs. Are they linked from any rst file? A search in the online sphinx html docs comes up empty, and http://docs.scipy.org/numpy/docs/numpy-docs/reference/routines.poly.rst/#routines-poly doesn't link to the new

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Pauli Virtanen
ti, 2010-02-09 kello 18:04 -0600, Robert Kern kirjoitti: On Tue, Feb 9, 2010 at 18:02, josef.p...@gmail.com wrote: [clip] numpy.lib.recfunctions I think, it's possible to directly import/reference them in the docs without adding them to lib.__all__ Okay. What is that way? What do we

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Pierre GM
On Feb 9, 2010, at 7:54 PM, Pauli Virtanen wrote: But, should we make these functions available under some less internal-ish namespace? There's numpy.rec at the least -- it could be made a real module to pull in things from core and lib. I still think these functions are more generic than

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread josef . pktd
On Tue, Feb 9, 2010 at 7:06 PM, Pierre GM pgmdevl...@gmail.com wrote: On Feb 9, 2010, at 6:52 PM, Robert Kern wrote: On Tue, Feb 9, 2010 at 17:47, Ralf Gommers ralf.gomm...@googlemail.com wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern robert.k...@gmail.com wrote: For some reason,

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 7:02 PM, Pierre GM pgmdevl...@gmail.com wrote: On Feb 9, 2010, at 7:54 PM, Pauli Virtanen wrote: But, should we make these functions available under some less internal-ish namespace? There's numpy.rec at the least -- it could be made a real module to pull in things from

Re: [Numpy-discussion] Emulate left outer join?

2010-02-09 Thread Pierre GM
On Feb 9, 2010, at 8:16 PM, John Hunter wrote: I still think these functions are more generic than the rec_ prefix let think, and I'd still prefer a decision being made about what should go in the module before thinking too hard about how to advertise it. I would love to see many of these

Re: [Numpy-discussion] numpy.polynomial.chebyshev (not) in the docs

2010-02-09 Thread David Goldsmith
Are you talking about absence in the Wiki or absence in a NumPy executable. They're in the former (I've been editing them), and they're in 1.4.0 of the latter: import numpy as N N.version.version '1.4.0' from numpy.polynomial import chebyshev as C help(C.chebfit) Help on function chebfit in

Re: [Numpy-discussion] numpy.polynomial.chebyshev (not) in the docs

2010-02-09 Thread josef . pktd
On Tue, Feb 9, 2010 at 9:30 PM, David Goldsmith d.l.goldsm...@gmail.com wrote: Are you talking about absence in the Wiki or absence in a NumPy executable. They're in the former (I've been editing them), and they're in 1.4.0 of the latter: I have them in numpy 1.4, I see them in the doceditor,

Re: [Numpy-discussion] numpy.polynomial.chebyshev (not) in the docs

2010-02-09 Thread Charles R Harris
On Tue, Feb 9, 2010 at 7:52 PM, josef.p...@gmail.com wrote: On Tue, Feb 9, 2010 at 9:30 PM, David Goldsmith d.l.goldsm...@gmail.com wrote: Are you talking about absence in the Wiki or absence in a NumPy executable. They're in the former (I've been editing them), and they're in 1.4.0 of

[Numpy-discussion] long(a) vs a.__long__() for scalar arrays

2010-02-09 Thread David Cournapeau
Hi, I am a bit puzzled by the protocol for long(a) where a is a scalar array. For example, for a = np.float128(1), I was expecting long(a) to call a.__long__, but it does not look like it is the case. int(a) does not call a.__int__ either. Where does the long conversion happen in numpy for scalar

Re: [Numpy-discussion] long(a) vs a.__long__() for scalar arrays

2010-02-09 Thread Charles R Harris
On Tue, Feb 9, 2010 at 11:12 PM, David Cournapeau courn...@gmail.comwrote: Hi, I am a bit puzzled by the protocol for long(a) where a is a scalar array. For example, for a = np.float128(1), I was expecting long(a) to call a.__long__, but it does not look like it is the case. int(a) does not