Cast NumPy array to/from custom C++ Matrix-class using pybind11 Cast NumPy array to/from custom C++ Matrix-class using pybind11 numpy numpy