[Numpy-discussion] ndimage.label - howto force SWIG to use int32 - even on 64bit Linux ?

Charles R Harris charlesr.harris@gmail....
Wed Apr 28 11:58:24 CDT 2010


On Tue, Apr 27, 2010 at 2:27 AM, Sebastian Haase <seb.haase@gmail.com>wrote:

> Hi,
> I wanted to write some C code to accept labels as they come from
> ndimage.label.
> For some reason ndimage.label produces its output as an int32 array -
> even on my 64bit system .
>
> BTW, could this be considered a bug ?
>
>
Likely.


> Now, if I use the typemaps of numpy.i I can choose between NPY_LONG and
> NPY_INT.
> But those are sometimes 32 sometimes 64 bit, depending on the system.
>
> Any ideas ... ?
>

npy_intp.

Chuck
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100428/73a28c27/attachment.html 


More information about the NumPy-Discussion mailing list