-
Notifications
You must be signed in to change notification settings - Fork 55
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
Possible support for Dual types for Automatic Differentiation #870
Comments
@albertomercurio We did a package |
Oh, good to know. Why don’t you make an extension to this package, instead of creating a new package for these purposes? |
It's still a work-in-progress project and we worked on a paper for the conference AD 2024. It was easier for the review to not include it in Krylov.jl yet. |
Let us know if you need any help with a specific setup. It was also not added as an extension right away because A hint to the KrylovPreconditioners.jl (also WIP) package in case you want a fast, portable, and differentiable preconditioner setup. |
Ok thanks for the clarification. I have already noticed KrylovPreconditioners.jl, but I still never used it. I will do it for sure in the future. BTW, just for my clarification, making it as an extension will not influence the dependencies of the package, right? It will continue to be a lightweight package, no? This is just for clarifying my concept of extension. |
That is true. However, there are, AFAIK, two things to keep in mind with extensions.
|
The other drawback of an extension is that it's only related to one package. For example, if you need both |
Thank you, very clear. |
Hello,
I was trying to use this package together with the ForwardDiff.jl package, in order to use automatic differentiation, but it failed because the input types are restricted to just floats or integers but not Duals, which are the base types for automatic differentiation.
I was wondering if relaxing the input types would be possible, in order to add the support to automatic differentiation, which is very used in the machine learning field but also when fitting some functions. Indeed, I was trying to use this package to get the smallest eigenvalues of a matrix as a function of some parameter, and the fitting these parameters with some experimental data’s. This fit procedure would be much faster with automatic differentiation.
The text was updated successfully, but these errors were encountered: