I would like to make a C++ data structure that internally has a contiguous 
buffer look like a Numpy array via the numpy ArrayInterface. I already have 
this structure wrapped and usable in Python and things seem fairly straight 
forward except I am not sure about the typekind field of the PyArrayInterface 
structure. In the documentation (here 
https://numpy.org/doc/stable/reference/c-api/types-and-structures.html#c.PyArrayInterface)
 I see that typekind is a char and that there are values for some but not all 
of the various C++ POD numeric types.. What typekind value should I use for 
single precision floating point,  8 bit ineteger, 16 bit integer, etc etc?  
Those types are all supported by Numpy, but I don't know what the typekind 
value should be. Can you point to a list of vlaues?
_______________________________________________
NumPy-Discussion mailing list -- numpy-discussion@python.org
To unsubscribe send an email to numpy-discussion-le...@python.org
https://mail.python.org/mailman3/lists/numpy-discussion.python.org/
Member address: arch...@mail-archive.com

Reply via email to