2
$\begingroup$

How can I call a function made with Compile in Python, Is it possible to just save it using LibraryGenerateand call the executable in Python latter?

$\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$ Commented 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$
    – Felipe
    Commented Nov 5 at 6:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.