I've written an extension in C++ for Python, and I'm currently debugging it. The extension takes 3 numpy matrices and produces 2 as a result. To the inner C++ function that does the actualy calculation I pass 3 float C arrays (just flattened and converted from input numpy arrays), and return a C float array of arrays. Everything works as intended but I've written an extension in C++ for Python, an