[Numpy-discussion] size_t or npy_intp?
Tue Jul 27 10:30:34 CDT 2010
On Tue, Jul 27, 2010 at 10:08 PM, Francesc Alted <email@example.com> wrote:
> 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
More information about the NumPy-Discussion