Re: [Numpy-discussion] ctypes TypeError. What I am doing wrong?

2007-05-01 Thread Stefan van der Walt
On Wed, May 02, 2007 at 12:38:12AM +0200, Guillem Borrell i Nogueras wrote: > lapack.argtypes=[c_int,c_int, > ndpointer(dtype=float64, >ndim=2, >flags='FORTRAN'), > c_int,c_int, >

Re: [Numpy-discussion] ctypes TypeError. What I am doing wrong?

2007-05-01 Thread Stefan van der Walt
Hi Guillem On Wed, May 02, 2007 at 12:38:12AM +0200, Guillem Borrell i Nogueras wrote: > I wrote the next function just to learn how ctypes work with numpy arrays. I > am not trying to write yet another wrapper to lapack, it's just an > experiment. (you can cut and paste the code) > > from cty

[Numpy-discussion] ctypes TypeError. What I am doing wrong?

2007-05-01 Thread Guillem Borrell i Nogueras
Hi I wrote the next function just to learn how ctypes work with numpy arrays. I am not trying to write yet another wrapper to lapack, it's just an experiment. (you can cut and paste the code) from ctypes import c_int from numpy import array,float64 from numpy.ctypeslib import load_library,ndpo