When it comes to usign the Numpy C API to create arrays,
there are plenty of resources to use the simpler functions,
such as the PyArray_SimpleNewXXX()
series. To use the most
generic ones, you are supposed to be fairly well versed in
Numpy. Unfortunately, there are functions of intermediate
complexity, and resources for these are scarce.
Today, I had to create a Numpy array as a view (without
copying data) of some fields in a vector of structs.
Clearly, not a job for the PyArray_SimpleNewXXX()
functions,