[Numpy-discussion] numpy, Py_ssize_t, cython and 64 bits python 2.4

2008-11-08 Thread David Cournapeau
Hi, I took a quick look at two bugs in scipy.spatial and scipy.special, linked to cython and 64 bits on python 2.4: http://scipy.org/scipy/scipy/ticket/785 At first, I was confused by the (runtime) error message given by cython; Py_ssize_t is a feature added in 2.5. The definition when built

Re: [Numpy-discussion] tried to set void-array with object members using buffer error message

2008-11-08 Thread Robert Kern
On Sat, Nov 8, 2008 at 18:35, ctw <[EMAIL PROTECTED]> wrote: > Hi! Can someone here shed some light on this behavior: > >> tst = np.zeros(2,[('a',np.int32),('b','S04')]) >> np.random.shuffle(tst) # this works fine > >> tst2 = np.zeros(2,[('a',np.int32),('b',list)]) >> np.random.shuffle(tst2) >

[Numpy-discussion] tried to set void-array with object members using buffer error message

2008-11-08 Thread ctw
Hi! Can someone here shed some light on this behavior: > tst = np.zeros(2,[('a',np.int32),('b','S04')]) > np.random.shuffle(tst) # this works fine > tst2 = np.zeros(2,[('a',np.int32),('b',list)]) > np.random.shuffle(tst2) ---

Re: [Numpy-discussion] n-dimensional array indexing question

2008-11-08 Thread Nathan Bell
On Sat, Nov 8, 2008 at 5:35 PM, dmitrey <[EMAIL PROTECTED]> wrote: > hi all, > I have array A, A.ndim = n, and 1-dimensional array B of length n. > How can I get element of A with coords B[0],...,B[n-1]? > i.e. A[B[0], B[1], ..., B[n-1]) > > A, B, n are not known till execution time, and can have u

[Numpy-discussion] n-dimensional array indexing question

2008-11-08 Thread dmitrey
hi all, I have array A, A.ndim = n, and 1-dimensional array B of length n. How can I get element of A with coords B[0],...,B[n-1]? i.e. A[B[0], B[1], ..., B[n-1]) A, B, n are not known till execution time, and can have unpredictable lengths (still n is usually small, no more than 4-5). I have tr

Re: [Numpy-discussion] f2py error with ifort

2008-11-08 Thread Marek Wojciechowski
Dnia sobota 08 listopad 2008, [EMAIL PROTECTED] napisaƂ: > > Hi! > > I'm trying to compile fortran code with f2py using the --fcompiler=intel > > flag but the follwoing weird error occurs: > > > > Found executable /opt/intel/fce/10.0.026/bin/ifort > > warning: build_ext: f77_compiler=intel is not a