[Numpy-discussion] how to work with numpy.int8 in c

David Warde-Farley dwf@cs.toronto....
Tue Mar 2 18:32:55 CST 2010


On 2-Mar-10, at 7:23 PM, James Bergstra wrote:

> Sorry... again... how do I make such a scalar... *in C* ?  What would
> be the recommended C equivalent of this python code?  Are there C
> type-checking functions for instances of these objects?  Are there C
> functions for converting to and from C scalars?
>
> Basically, is there a C API for working with these numpy scalars?


This bit looks relevant:

http://projects.scipy.org/numpy/browser/trunk/numpy/core/src/multiarray/scalarapi.c?rev=7560#L565

David


More information about the NumPy-Discussion mailing list