Re: [Numpy-discussion] ndarray allocation question

2007-04-10 Thread David Doukhan
2007/4/10, Travis Oliphant <[EMAIL PROTECTED]>: > David Doukhan wrote: > > >Sorry, i thought doing the following lines: > > > >clib = ctypes.cdll.LoadLibrary("./libtest.so") > >dt = numpy.dtype({'names' : ['x'], 'forma

Re: [Numpy-discussion] ndarray allocation question

2007-04-10 Thread David Doukhan
2007/4/10, Travis Oliphant <[EMAIL PROTECTED]>: > David Doukhan wrote: > > Hi! > > I'm writing you this mail because I would like to do "advanced" use of > > ndarray memory allocation. > > > > So here is a short description of my problem: >

[Numpy-discussion] ndarray allocation question

2007-04-09 Thread David Doukhan
example, asking for an array of 2 lines and 7 columns of float32, so that the adress of the biginning of the data would be a multiple of 16 bytes (that's already possible) AND beeing sure that the allocated memory for the data would be at least 16 * sizeof(float32), instead of 14*sizeof(float