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

David Warde-Farley dwf at cs.toronto.edu
Tue Mar 2 19:32:55 EST 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