I&#39;d just like so input as to whether I have the right idea.<br><br>I would like to subclass numpy&#39;s ndarray (on the python side), this new class will call functions in a C library that expects an array type that&#39;s defined in its own library. <br>
This library also uses a strided array model. <br><br>So my idea is to create an extension type in Cython that essentially reimplements this C libraries struct and will be stored in a private attribute of my ndarray subclass. When I instantiate an object of my ndarray subclass, I will populate the private Cython struct with the appropriate values and the pointer to the ndarray data. Then, when I call a function of the C library (the function is also wrapped with cython) I pass the private attribute as an argument. <br>
<br>Is that about right?<br><br>Cheers, <br><br>Chris<br>