indexing arrays in extensions created with ext_tools (scipy.weave)

2008-10-31 Thread Soren
Hi, I'm trying to make a weave python extension to use in my program. I already did it in inline, but that doesn't work with py2exe (needs compiler), so I'm creating extensions instead using ext_tools. Is there a way I can use blitz with ext_tools? so that I can refer to arrays like a(x,y) in the

Re: indexing arrays

2008-10-10 Thread Terry Reedy
John [H2O] wrote: I'm having trouble slicing arrays: If these are numpy arrays, as appears, rather that array module arrays, then the numpy list might be a better place. In any case, using 'numpy' would have gotten the attention of someone scanning for posts about numpy. I thought I coul

Re: indexing arrays

2008-10-10 Thread Emily Rodgers
"John [H2O]" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > I'm having trouble slicing arrays: > > I thought I could do the following: i = array(range(140,149)) j = array(range(5,20)) a = acc[i,j] > Traceback (most recent call last): > File "", line 1, in > Value

indexing arrays

2008-10-10 Thread John [H2O]
broadcast to a single shape It's strange, because I can do this: >>> a = acc[140:148,5:19] >>> Anyone know what I am doing wrong? -- View this message in context: http://www.nabble.com/indexing-arrays-tp19918073p19918073.html Sent from the Python - python-list maili