-
Notifications
You must be signed in to change notification settings - Fork 16
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
undef appeared during prepre_jacobian for Dual of BigFloat #650
Comments
Hi @ErikQQY! Thanks for reporting this. DI.jacobian(copyto!, similar(u0), backend, u0) Note that your version would fail DI.jacobian(copyto!, BigFloat.([1.0, 1.0, 1.0]), backend, u0) but that's only because you initialize |
Also note that the constant coloring you give in your example is not correct. With a dense Jacobian sparsity pattern like |
Oh, after further investigation, it turns out that the error is on the NonlinearSolve side, which initializes the storage with |
Also, find this issue while implementing SciML/BoundaryValueDiffEq.jl#258
Actually, I narrowed this down from BoundaryValueDiffEq.jl to NonlinearSolve.jl, and finally to DI, so this may affect NonlinearSolve as well. This MWE is just proof of the idea and may be not meaningful, but can still represent the issue here. When the
x
inprepare_jacobian
is a Dual number of BigFloat, there would beundef
in the output.These
undef
make the afterward Jacobian computation throw errors.The text was updated successfully, but these errors were encountered: