Hi !
I just started playing with Symengine today for a "heavy" project I have. Replacing Sympy by Symengine did not work out of the box in my code. First, because the Lambidy-ed function from Symengine does not get "jit" in Numba, which a priori will become a problem for me. But it is not only that, after removing "jit", my code raised the following error:
ValueError: setting an array element with a sequence.
I made a simple example below that reproduces the problem. Sympy does not meet issue here, but Symengine raises an exception.
Do you know what is happening?
------------------------------------
import symengine as se
import sympy as sp
import numpy as np
x, y = se.var("x y")
expr = se.sin(x)*se.cos(y)
func = sp.lambdify((x,y), expr, 'numpy')
print(func(0, np.array([0,2])))
x, y = se.var("x y")
expr = se.sin(x)*se.cos(y)
func = se.Lambdify((x,y), expr)
print(func(np.pi/2, np.array([0, np.pi/2])))
------------------------------------
Thank you for your time and help!
Best,
Gaël