pybind11

returning numpy arrays via pybind11

returning numpy arrays via pybind11 Question: I have a C++ function computing a large tensor which I would like to return to Python as a NumPy array via pybind11. From the documentation of pybind11, it seems like using STL unique_ptr is desirable. In the following example, the commented out version works, whereas the given one …

Total answers: 2