Re: [Numpy-discussion] Numpy-1.0.3 RPM install failure on SUSE 10.2

2007-06-08 Thread David Cournapeau
rex wrote: > I don't know if this is the appropriate place for this, but thanks for > any pointers to what the problem is. > > -rex > > Traceback (most recent call last): > File "", line 1, in > File "/usr/lib/python2.5/site-packages/numpy/__init__.py", line 43, in > > import linalg >

Re: [Numpy-discussion] I hate for loops

2007-06-08 Thread Charles R Harris
On 6/8/07, Charles R Harris <[EMAIL PROTECTED]> wrote: On 6/8/07, Mathew Yeates <[EMAIL PROTECTED]> wrote: > > Hi > I'm looking for a more elegant way of setting my array elements > Using "for" loops it would be > for i in range(rows): > for j in range(cols): >N[i,j] = N[i-1][j] +

Re: [Numpy-discussion] I hate for loops

2007-06-08 Thread Charles R Harris
On 6/8/07, Mathew Yeates <[EMAIL PROTECTED]> wrote: Hi I'm looking for a more elegant way of setting my array elements Using "for" loops it would be for i in range(rows): for j in range(cols): N[i,j] = N[i-1][j] + N[i][j-1] - N[i-1][j-1] If the initial values of the recursion are i

Re: [Numpy-discussion] flatten() without copy - is this possible?

2007-06-08 Thread Anne Archibald
On 05/06/07, Charles R Harris <[EMAIL PROTECTED]> wrote: > > On 6/5/07, dmitrey <[EMAIL PROTECTED]> wrote: > > Thank you, but all your examples deal with 3-dimensional arrays. and I > > still misunderstood, is it possible somehow for 2-dimensional arrays or > no? > > D. > > There is nothing special

[Numpy-discussion] I hate for loops

2007-06-08 Thread Mathew Yeates
Hi I'm looking for a more elegant way of setting my array elements Using "for" loops it would be for i in range(rows): for j in range(cols): N[i,j] = N[i-1][j] + N[i][j-1] - N[i-1][j-1] It's sort of a combined 2d accumulate. Any ideas? Mathew ___

[Numpy-discussion] Numpy-1.0.3 RPM install failure on SUSE 10.2

2007-06-08 Thread rex
I don't know if this is the appropriate place for this, but thanks for any pointers to what the problem is. -rex deserv:/ # smart install python-numpy Loading cache... Updating cache... ## [100%] Computing transact

[Numpy-discussion] numarray.fft causes fatal Python error

2007-06-08 Thread Sebastien Maret
% python Python 2.5.1 (r251:54863, May 11 2007, 11:07:19) [GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin Type "help", "copyright", "credits" or "license" for more information. from >>> from numarray import * >>> import numarray.fft >>> a = array([1., 0., 1., 0., 1., 0., 1., 0.]) + 10 >>>