The input numpy array is mapped to the input of a C++ wrapper function using pybind11
. Then, core function myfunc
with templated input type is executed on the mapped matrix.
To execute the test function and profile memory usage, run
/usr/bin/time -v python test.py