These are chat archives for symengine/symengine
@isuruf : Today is even worse than yesterday.
symengine_wrapper.pyx:484:46: Compiler crash in AnalyseExpressionsTransform
At the moment I'm basically trying to brute-force the code space to find a combination that works.
rcp_const_basicand using that throughout---but when I try to give it as argument to
c2pyCython will not recognize that
rcp_const_basicis identical to the
symengine_wrapper.pyx:484:35: Cannot assign type 'rcp_const_basic' to 'RCP[Basic const ]'
rcp_const_basicwould be a good idea right?
@isuruf Let's assume the change you propose is done and
c2py looks like:
cdef c2py(rcp_const_basic o): cdef Basic r (long list of r = ...) r.thisptr = o return r
This does not compile, error:
r.thisptr = o ^ symengine_wrapper.pyx:104:17: Cannot assign type 'rcp_const_basic' to 'RCP[Basic const ]'
So haven't we just only moved the problem elsewhere?
OK, casting works via the obscure
so I don't need to convert everything.
SYMPY_USE_CACHE=no) does not work.
RCP[const Basic]then that error won't be there right?
sin(x)*cos(x)8ms for N=100, and 770ms for N=1000, which is about 3 times faster than Sage(Pynac), 1-2 times faster than Pari, but 1 order of magnitude slower than Flint.
@isuruf How do I run tests locally? Atm I'm running isympy after installation of symengine.py and do:
In : import symengine.tests In : symengine.test()
However my test py file gets simply aborted (other files pass). How can I get better diagnostics? I'm still a Python noob.
symengine.testis a way to check if
symengineinstallation is successful.
py.test -vfrom the root