-
Notifications
You must be signed in to change notification settings - Fork 4
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
make_function
returns wrong result with sparse Jacobian for very simple functions only
#67
Comments
make_function
returns wrong result for sparse Jacobianmake_function
returns wrong result for sparse Jacobian for very simple functions only
make_function
returns wrong result for sparse Jacobian for very simple functions onlymake_function
returns wrong result with sparse Jacobian for very simple functions only
Looks like it's related to one of the optimizations for constant jacobians. Should be an easy fix but may not be done till tomorrow since it's already late here. |
No worries at all! |
…mple functions only Fixes #67 when in_place was false and the jacobian was constant make_function generated code which returned the vector of non zeros of the sparse matrix rather than the sparse matrix itself. Now it returns the sparse matrix.
Fixed the bug and am waiting for the PR CI to finish. Should be done in 15-20 minutes, then I'll make a new patch release. Let me know if this doesn't fix all the problems. |
@gdalle the patch release with fix should be available soon (v 0.3.7). Let me know if this fixes the problem and I'll close the issue. |
Cool, thanks for the speedy response! I'll try it out once it's tagged :) |
…mple functions only Fixes #67 added NoOp Node type and wrapped all roots in NoOp to ensure that nodes used in multiple roots all get edges.
…mple functions only Fixes #67 all tests pass locally
I think this happens because of a missing
return result
line in the generated function. What's weird is that for a slightly more complicated function, this line does appear and the result is correct:The text was updated successfully, but these errors were encountered: