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
>
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] +
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
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
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
___
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
% 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
>>>