Not so much a feature request or issue as a general question about the implementation:
I'm wondering if it is possible to use custom functions w/ symengine. W/ SymPy itself you can inherit from sympy.Function to create one, and do the necessary customization on the code-printer during code-generation.
With symengine I'm not sure how one would achieve this. In my simple test, inheriting from sympy.Function resulted in a segfault somewhere (haven't traced this yet, but naive guess would be in symengine). symengine also doesn't understand sympy.UndefinedFunction either.
Do you know of a method for handling custom functions, other than falling back to plain sympy?
I stand corrected - it is possible actually. There was a missing import from symengine in symbolic.py (for UndefinedFunction). Will open a pull request.
Not so much a feature request or issue as a general question about the implementation:
I'm wondering if it is possible to use custom functions w/ symengine. W/ SymPy itself you can inherit from
sympy.Function
to create one, and do the necessary customization on the code-printer during code-generation.With symengine I'm not sure how one would achieve this. In my simple test, inheriting from
sympy.Function
resulted in a segfault somewhere (haven't traced this yet, but naive guess would be in symengine). symengine also doesn't understandsympy.UndefinedFunction
either.Do you know of a method for handling custom functions, other than falling back to plain sympy?