[Numpy-discussion] help with PyArrayInterface

2021-12-21 Thread bloring
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 PyArrayI

[Numpy-discussion] Re: help with PyArrayInterface

2021-12-27 Thread bloring
Thank you Matti. That is what I was looking for! However, I've since learned that it is not what is needed. I'm posting again because I found some aspects of the PyArrayInterface a bit inconsistent w/ other places in numpy and confusing. It may be the case that others in the future find this po