On Tue, Jul 27, 2010 at 10:08 PM, Francesc Alted <fal...@pytables.org> wrote:
> Hi,
>
> I'm a bit confused on which datatype should I use when referring to NumPy
> ndarray lengths.  In one hand I'd use `size_t` that is the canonical way to
> refer to lengths of memory blocks.  In the other hand, `npy_intp` seems the
> standard data type used in NumPy for this.

npy_intp is the one to use ATM. I agree it is confusing (because
intp_t and ssize_t are for different use cases), adding a npy_ssize_t
and fixing the API accordingly is on my TODO list, but that's pretty
low :)

David
_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to