Open ronanpaixao opened 8 years ago
An important note: since autowrap doesn't allow for more helpers and the C/Cython backend doesn't support (out-of-the-box) some builtin function like sympy.Max
, this pretty much blocks using C/Cython for expressions with more than one function, any function.
We recently fixed this #8889 and added an extensive addition with code gen examples. I think the helpers is now in the master branch. It will be released with the 1.0 release that will happen soon.
This was also recently merged: https://github.com/sympy/sympy/pull/10282
@ronanpaixao Would you mind submitting a pull request with your docstring additions?
utilities.autowrap.ufuncify()
doesn't explain properly how thehelpers
argument should be used. The best documentation, of course, is an example. Maybe one can include this in the docstring (it can also work as a test if usingdoctest
):It took a long time for me to find the proper "format" for the helpers, which really is like
iterable_of(3-tuple(str, SymPy expression, list))
.utilities.autowrap.autowrap()
, however, expects only a single helper function!