[Numpy-discussion] Converting None to NULL using ndpointer

2010-05-18 Thread Lutz Maibaum
Hello, I am trying to use a C library function from Python using numpy and ctypes. Assume the function has the signature void foo(int* bar) so it usually takes an integer array as a parameter. In python, I define foo.argtypes=[ndpointer(dtype="intc",flags="C_CONTIGUOUS")] and can then call the

Re: [Numpy-discussion] Wrong Eigenvalue (Approximation?)

2010-05-18 Thread Jon Wright
Sebastian Haase wrote: > On Sun, May 16, 2010 at 2:13 PM, Alan G Isaac wrote: >> On 5/16/2010 12:03 AM, Gabriel Mihalache wrote: >>> The eigenvalue should be 1 exactly. >> http://floating-point-gui.de/ >> > Hi, just wondering why that site you just referred doesn't say who the > author is !? > It

Re: [Numpy-discussion] Re : Saving an array on disk to free memory - Pickling

2010-05-18 Thread Francesc Alted
A Tuesday 18 May 2010 08:57:47 Jean-Baptiste Rudant escrigué: > Thank you very much for the help. > > But I was more looking for some coding solution (furthermore, I'm not using > Linux). My point in not to make some real arrays looking like they are > saved on files (and use for it some files i

[Numpy-discussion] Re : Saving an array on disk to free memory - Pickling

2010-05-18 Thread Jean-Baptiste Rudant
Thank you very much for the help. But I was more looking for some coding solution (furthermore, I'm not using Linux). My point in not to make some real arrays looking like they are saved on files (and use for it some files in memory), but at the contrary, to make some "fake" arrays, saved on di