Re: [Numpy-discussion] nasty bug in 1.8.0??

2013-12-02 Thread Jim Bosch
> If your arrays are contiguous, you don't really need the strides (use the itemsize instead). How is ndarray broken by this? ndarray is broken by this change because it expects the stride to be a multiple of the itemsize (I think; I'm just looking at code here, as I haven't had time to build NumP

Re: [Numpy-discussion] Behavior of .base

2012-10-01 Thread Jim Bosch
fer interface), there's no longer any way for a NumPy array to hold data allocated by something other than NumPy. If I want to put external memory in a NumPy array and indicate that it's owned by some non-NumPy Python object, what is the recommended way to do that? Thanks! Jim Bosc

Re: [Numpy-discussion] NA-mask interactions with existing C code

2012-05-11 Thread Jim Bosch
On 05/11/2012 01:36 AM, Travis Oliphant wrote: >>> >>> I guess this mixture of Python-API and C-API is different from the way >>> the API tries to protect incorrect access. From the Python API, it. >>> should let everything through, because it's for Python code to use. From >>> the C API, it should

[Numpy-discussion] problem importing NumPy from C/C++

2012-04-13 Thread Jim Bosch
l of the above does work on a number of other systems, so I suspect something went wrong with this particular NumPy install, but it claims to have been successful. This is with gcc 4.1.2, RHEL 5. Any ideas? Thanks! Jim Bosch ___ NumPy-Discussion mailing li

Re: [Numpy-discussion] creating/working NumPy-ndarrays in C++

2012-04-03 Thread Jim Bosch
On 04/03/2012 12:48 PM, Chris Barker wrote: > On Tue, Apr 3, 2012 at 6:06 AM, Holger Herrlich > >> I know of >> boost.python so far. > > I've never used boost.python, but it's always seemed to me to be kind > of heavy weight and not all that well maintained [1] > > -- but don't take my word for