Re: [Numpy-discussion] what is the best way to pass c, c++ array to numpy in cython?

2012-01-04 Thread 최원준
can I pass the array without malloc? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy.org/mailman/listinfo/numpy-discussion

Re: [Numpy-discussion] what is the best way to pass c, c++ array to numpy in cython?

2012-01-04 Thread Gael Varoquaux
On Thu, Jan 05, 2012 at 11:26:05AM +0900, 최원준 wrote: >it seems like you recommend below way. >Cython example of exposing C-computed arrays in Python without data copies >[1]https://gist.github.com/1249305 >but it uses malloc. isn't it? In this example, the data can be allocated th

Re: [Numpy-discussion] what is the best way to pass c, c++ array to numpy in cython?

2012-01-04 Thread 최원준
it seems like you recommend below way. Cython example of exposing C-computed arrays in Python without data copies https://gist.github.com/1249305 but it uses malloc. isn't it? ___ NumPy-Discussion mailing list NumPy-Discussion@scipy.org http://mail.scipy

Re: [Numpy-discussion] find location of maximum values

2012-01-04 Thread Derek Homeier
On 04.01.2012, at 5:10AM, questions anon wrote: > Thanks for your responses but I am still having difficuties with this > problem. Using argmax gives me one very large value and I am not sure what it > is. > There shouldn't be any issues with the shape. The latitude and longitude are > the sam

Re: [Numpy-discussion] PyInt and Numpy's int64 conversion

2012-01-04 Thread xantares 09
> From: wesmck...@gmail.com > Date: Sat, 24 Dec 2011 19:51:06 -0500 > To: numpy-discussion@scipy.org > Subject: Re: [Numpy-discussion] PyInt and Numpy's int64 conversion > > On Sat, Dec 24, 2011 at 3:11 AM, xantares 09 wrote: > > > > > >> From: wesmck...@gmail.com > >> Date: Fri, 23 Dec 2011 1