How can I call a function made with Compile
in Python, Is it possible to just save it using LibraryGenerate
and call the executable in Python latter?
$\begingroup$
$\endgroup$
2
-
$\begingroup$ I would recommend to use the numba Python package to compile your program directly in your Python session. numba is really easy to use and very efficient. And it would remove also the most of the overhead that would be needed to communicated between Python and Mathematica. $\endgroup$– Henrik SchumacherCommented Nov 4 at 14:51
-
$\begingroup$ @HenrikSchumacher my problem is that the expressions are some big polynomials that are generated automatically, so writing it myself in python is not really an option. $\endgroup$– FelipeCommented Nov 5 at 6:57
Add a comment
|