Using boost.python, it seems to be reasonably easy to produce a wrapper to import C++ code into python. On the plus side, this would hugely simplify the usability for end users: Instead of all the CMake workarounds, you simply build a python module and use python.
However, the documentation is lacking in many respects, so a few things need to be tried out. In particular, things that I can think of:
Also, have a look at SWIG as alternative: http://swig.org
Used pybind11 (boost::python alternative). Not everything has been solved (see ticket [#130] for not yet implemented features), but there is a working prototype including conversion of tensors into python data types (numpy.array) and back.
Diff:
Diff:
Diff:
Related
Tickets:
#130