Skip to content
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

fixedpoint doesn't work with autodiff #268

Open
amrods opened this issue Feb 16, 2021 · 1 comment
Open

fixedpoint doesn't work with autodiff #268

amrods opened this issue Feb 16, 2021 · 1 comment

Comments

@amrods
Copy link

amrods commented Feb 16, 2021

Both of these throw an error:

fixedpoint(x -> 0.5*(2/x + x), [1.0]; autodiff=:true)
ERROR: TypeError: in keyword argument autodiff, expected Symbol, got a value of type Bool

fixedpoint(x -> 0.5*(2/x + x), [1.0]; autodiff=true)
ERROR: TypeError: in keyword argument autodiff, expected Symbol, got a value of type Bool
@amrods
Copy link
Author

amrods commented Feb 16, 2021

I think what happens is that fixedpoint calls nlsolve, but the latter takes autodiff=:forward as an option, rather than autodiff=:true as the documentation states. Specifically, this sentence in the Fixed Points section needs to be fixed:

  • Autodifferentiation is supported; e.g. fixedpoint(f!, init_x; method = :newton, autodiff = :true).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant