[C++-sig] Writing to numpy array: good practices?

2011-10-11 Thread Jonas Einarsson
Dear list, First, sorry if this is a double-post, I got confused with the subscription. Anyhow, I seek an opinion on good practice. I'd like to write simple programs that 1) (In Python) allocates numpy array, 2) (In C/C++) fills said numpy array with data. To this end I use Boost.Python to compi

Re: [C++-sig] Writing to numpy array: good practices?

2011-10-11 Thread Jim Bosch
On 10/11/2011 10:39 AM, Jonas Einarsson wrote: Dear list, First, sorry if this is a double-post, I got confused with the subscription. Anyhow, I seek an opinion on good practice. I'd like to write simple programs that 1) (In Python) allocates numpy array, 2) (In C/C++) fills said numpy array wi