-
Notifications
You must be signed in to change notification settings - Fork 67
Use symengine's new interface for lambda double #106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Ready for review. LLVMDoubleVisitor should be another PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That looks good, thanks!
Looks great! |
Tests fail with |
Do you think #105 might be related? |
I just pushed a fix, let's see. |
Hi @isuruf I'm afraid that simplify expressions before sending to sympy can't fix #105. In the implementation of sympy's I think the correct way to fix it is casting expression to sympy's value before sending to the subs, new_exprs = cse([expr._sympy_() for expr in exprs]) |
@sighingnow, |
OK, I got it. Thanks very much for your reply @isuruf . |
Anybody have access to a Mac? |
On OS X, Python=3.5 Release mode fails while Debug mode passes |
I have ssh access to a Mac OS X machine, never used OX X though, I will try to debug. |
I'm struggling on OSX, I can't even get libsymengine ctest suite to pass, all tests fail like this:
|
Hmm, can you try the conda package for symengine? |
I will, but I'm afraid I've run out of time for today. I can try again next weekend. If you want to make progress earlier I could try to provide you with an account on that box with ssh access? Just email me your public ssh key or preferred password to my gmail: bjodah |
Thanks to @bjodah, I got access to a Mac and I was able to reproduce this. |
This fixes a segfault in lambdify. This segfault is probably a a Cython bug or a compiler bug or a combination of both
Added a fix. I'm not happy with the fix, but this is the best I could come up for now. I'll try to get a proper fix in later. Meanwhile, can somebody review the last commit , so that we can move on the LLVMDoubleVisitor? |
I think this is fine. In the long run, I still think we should switch our Python wrappers to use the C API. Still use Cython, but just a C compiler and C API. This will speedup the compilation greatly, and get rid of all these bugs. We already have an issue for this at #91. |
+1 to merge as it is. |
Depends on symengine/symengine#1094