Re: [Numpy-discussion] My GSoC Proposal to Implement a Subset of NumPy for PyPy

2010-04-20 Thread Christopher Barker
Dan Roberts wrote: > Hi everybody, my name is Dan Roberts, and my Google Summer of Code cool stuff. A few years back, someone did a tiny micro-prototype of numpy implemented in Psyco, using the array.array data type as the base. It was actually pretty promising performance-wise. I don't kn

[Numpy-discussion] scipy error undefined symbol: lsame_

2010-04-20 Thread gerardob
I installed scipy (and all the required libraries) and the following error appears when i tried run a simple example which uses the optimize package of scipy. I tried also numpy alone and it works ( at least for printing numpy.array([10,20,10])) error: Traceback (most recent call last): File "

Re: [Numpy-discussion] patch to pickle np.memmap

2010-04-20 Thread Brent Pedersen
On Tue, Apr 13, 2010 at 8:59 PM, Brent Pedersen wrote: > On Tue, Apr 13, 2010 at 8:52 PM, Brent Pedersen wrote: >> hi, i posted a patch to allow pickling of np.memmap objects. >> http://projects.scipy.org/numpy/ticket/1452 >> >> currently, it always returns 'r' for the mode. >> is that the best t

Re: [Numpy-discussion] reformulating a series of correlations as one fft, ifft pair

2010-04-20 Thread Stéfan van der Walt
Hi Paul On 19 April 2010 08:36, Paul Northug wrote: > I am having trouble reformulating a series of correlations as a single > fft, ifft pair. > > I have a set of kernels phi : (M = channel, N = kernel, T = time) > correlated with signal a : (N, P+T-1) yielding x : (M, T). > > The correlation, fo

Re: [Numpy-discussion] Numpy compilation error

2010-04-20 Thread Robert Kern
On Mon, Apr 19, 2010 at 09:58, Pradeep Jha wrote: > Thank you so much Robert. You are awesome :) That totally the problem. > One more question for you. Which  are the things that you have to declare in > PYTHONPATH manually? In your case, just the site-packages/ directory you installed to. -- R

Re: [Numpy-discussion] Brooken Toolchain (Mac 10.6)

2010-04-20 Thread Ralf Gommers
On Mon, Apr 19, 2010 at 10:55 PM, Patrick Marsh wrote: > Greetings, > > Per my previous email, I'm trying to setup the release process for Numpy on > my MacBook Pro. When trying to build Numpy 1.4.1r3 with Python 2.5.4 I get > a broken toolchain error (below). I do not get this error when trying

Re: [Numpy-discussion] Release candidate 3 for NumPy 1.4.1 and SciPy 0.7.2

2010-04-20 Thread Ralf Gommers
On Mon, Apr 19, 2010 at 9:19 PM, Ralf Gommers wrote: > > > On Mon, Apr 19, 2010 at 4:21 PM, Ralf Gommers > wrote: > >> >> >> On Mon, Apr 19, 2010 at 3:35 PM, Sebastian Haase wrote: >> >>> Hi, >>> Congratulations. I might be unnecessarily dense - but what SciPy am I >>> supposed to use with the ne

Re: [Numpy-discussion] reformulating a series of correlations as one fft, ifft pair

2010-04-20 Thread Paul Northug
gmail.com> writes: > > On Mon, Apr 19, 2010 at 2:36 AM, Paul Northug gmail.com> wrote: > > > > # > > import numpy as np > > from scipy.signal import fftn, ifftn, correlate > > > > M, N, P, T = 2, 3, 4, 5 > > > > phi = np.random.randn(M, N, P) > > a = np.random.randn(N, P+T-1) > > x = np.zeros(

Re: [Numpy-discussion] Brooken Toolchain (Mac 10.6)

2010-04-20 Thread David Cournapeau
On Mon, Apr 19, 2010 at 11:55 PM, Patrick Marsh wrote: > Greetings, > Per my previous email, I'm trying to setup the release process for Numpy on > my MacBook Pro.  When trying to build Numpy 1.4.1r3 with Python 2.5.4 I get > a broken toolchain error (below).  I do not get this error when trying t

Re: [Numpy-discussion] Building DMG w/ Python 2.6 (could not access...no space left on device)

2010-04-20 Thread David Cournapeau
On Mon, Apr 19, 2010 at 11:44 PM, Patrick Marsh wrote: > Greetings, > I'm trying to build DMG releases of numpy-1.4.1rc3 as part of the release > process.  I recently got my mac back from repairs and spent the weekend > trying to get the build environment configured on it.  I thought it was > corr

Re: [Numpy-discussion] Brooken Toolchain (Mac 10.6)

2010-04-20 Thread Robin
To build against the python.org 2.5 you need to use the older gcc: export CC=/usr/bin/gcc-4.0 export CXX=/usr/bin/g++-4.0 should do it. By default snow leopard uses 4.2 now, which doesn't support the -Wno-long-double option used when building python. Cheers Robin On Mon, Apr 19, 2010 at 3:55 P

Re: [Numpy-discussion] scipy error undefined symbol: lsame_

2010-04-20 Thread David
On 04/20/2010 02:32 AM, gerardob wrote: > > I installed scipy (and all the required libraries) and the following error > appears when i tried run a simple example which uses the optimize package of > scipy. I tried also numpy alone and it works ( at least for printing > numpy.array([10,20,10])) > >

[Numpy-discussion] trim_zeros in more than one dimension?

2010-04-20 Thread Andreas Hilboll
Hi there, is there an easy way to do something like trim_zeros() does, but for a n-dimensional array? I have a 2d array with only zeros in the first and last rows and columns, and would like to trim this array to only the non-zero part ... Thanks, Andreas. __

Re: [Numpy-discussion] My GSoC Proposal to Implement a Subset of NumPy for PyPy

2010-04-20 Thread Travis Oliphant
On Apr 16, 2010, at 11:50 PM, Dan Roberts wrote: Hello NumPy Users, Hi everybody, my name is Dan Roberts, and my Google Summer of Code proposal was categorized under NumPy rather than PyPy, so it will end up being reviewed by mentors for the NumPy project. I'd like to take this chanc

Re: [Numpy-discussion] Numpy compilation error

2010-04-20 Thread Christopher Barker
Pradeep Jha wrote: > Thank you so much Robert. You are awesome :) That totally the problem. > One more question for you. Which are the things that you have to > declare in PYTHONPATH manually? I never put anything in PYTHONPATH -- if you install everything you need, you won't need to. When I'

Re: [Numpy-discussion] Numpy compilation error

2010-04-20 Thread Robert Kern
On Mon, Apr 19, 2010 at 20:34, Christopher Barker wrote: > > > Pradeep Jha wrote: >> Thank you so much Robert. You are awesome :) That totally the problem. >> One more question for you. Which  are the things that you have to >> declare in PYTHONPATH manually? > > I never put anything in PYTHONPATH