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

2010-02-09 Thread David Cournapeau
Charles R Harris wrote: > > > On Tue, Feb 9, 2010 at 11:12 PM, David Cournapeau > wrote: > > 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._

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 wrote: > 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

[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] numpy.polynomial.chebyshev (not) in the docs

2010-02-09 Thread Charles R Harris
On Tue, Feb 9, 2010 at 7:52 PM, wrote: > On Tue, Feb 9, 2010 at 9:30 PM, David Goldsmith > 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 num

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 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, but not in http://doc

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 c

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

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

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 7:02 PM, Pierre GM 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 core and li

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

2010-02-09 Thread josef . pktd
On Tue, Feb 9, 2010 at 7:06 PM, Pierre GM wrote: > On Feb 9, 2010, at 6:52 PM, Robert Kern wrote: >> On Tue, Feb 9, 2010 at 17:47, Ralf Gommers >> wrote: >>> >>> >>> On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern wrote: For some reason, numpy.lib.recfunctions isn't in the documenta

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 Pauli Virtanen
ti, 2010-02-09 kello 18:04 -0600, Robert Kern kirjoitti: > On Tue, Feb 9, 2010 at 18:02, 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 need to do to m

[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 f

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

2010-02-09 Thread josef . pktd
On Tue, Feb 9, 2010 at 7:04 PM, Robert Kern wrote: > On Tue, Feb 9, 2010 at 18:02,   wrote: >> On Tue, Feb 9, 2010 at 6:52 PM, Robert Kern wrote: >>> On Tue, Feb 9, 2010 at 17:47, Ralf Gommers >>> wrote: On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern wrote: > > > For s

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 > wrote: >> >> >> On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern wrote: >>> >>> >>> For some reason, numpy.lib.recfunctions isn't in the documentation >>> editor. I'm not sure why. >>> >> Because it's

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

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 18:02, wrote: > On Tue, Feb 9, 2010 at 6:52 PM, Robert Kern wrote: >> On Tue, Feb 9, 2010 at 17:47, Ralf Gommers >> wrote: >>> >>> >>> On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern wrote: For some reason, numpy.lib.recfunctions isn't in the documentation >

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

2010-02-09 Thread josef . pktd
On Tue, Feb 9, 2010 at 6:52 PM, Robert Kern wrote: > On Tue, Feb 9, 2010 at 17:47, Ralf Gommers > wrote: >> >> >> On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern wrote: >>> >>> >>> For some reason, numpy.lib.recfunctions isn't in the documentation >>> editor. I'm not sure why. >>> >> Because it's

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

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 17:47, Ralf Gommers wrote: > > > On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern 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 there needs to be a secondary way to

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

2010-02-09 Thread Ralf Gommers
On Wed, Feb 10, 2010 at 6:02 AM, Robert Kern 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__ . Cheers, Ralf ___ NumPy-Discussion mailing list NumPy-Discu

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 post

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

2010-02-09 Thread John Hunter
On Tue, Feb 9, 2010 at 4:43 PM, Fernando Perez wrote: > On Tue, Feb 9, 2010 at 5:02 PM, Robert Kern 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 c

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

2010-02-09 Thread Fernando Perez
On Tue, Feb 9, 2010 at 5:02 PM, Robert Kern 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_ mlab.rec_append_fields mlab.rec

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

2010-02-09 Thread Robert Kern
On Tue, Feb 9, 2010 at 15:52, David Carmean 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 into > set-

[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 try

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 wrote: > On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana 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 = [

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 wrote: > On Tue, Feb 9, 2010 at 7:42 AM, Vishal Rana 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] s

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 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:42 AM, Vishal Rana 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 if it is fas

[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 NumPy-Discuss

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 wrote: > On Mon, Feb 8, 2010 at 9:14 PM, Ralf Gommers > 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 with Python 2.5 and 2.6, MakeNsis > > a