-
Notifications
You must be signed in to change notification settings - Fork 12
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
Clarify documentation on sparse second-order differentiation #268
Comments
Indeed you should wrap the whole backend inside AutoSparse(SecondOrder(Outer(), Inner())) I'll add it to the
I'm not sure what you mean here, can you perhaps fix the typo or forgotten |
What I mean is, you can do e.g. |
Yes, this behavior is independent from |
@ElOceanografo I made an effort to clarify the documentation on sparse, second order and their interactions. This is visible in the dev docs, and in the docs of the newly-released DifferentiationInterface v0.4.2. Does it clarify things for you? Are there still uncertain aspects? |
Yes, that's much clearer, thanks! |
Currently the documentation is not totally clear whether you should do
AutoSparse(SecondOrder(OuterBackend(), InnerBackend(), ...))
orSecondOrder(AutoSparse(OuterBackend(), ...), InnerBackend())
. Based on some quick timing experiments, I assume it's the former...would be good to have it laid out explicitly.It would also be good to have a brief description of the difference between
AutoSparse(InnerBackend(), ...)
andAutoSparse(OuterBackend(), InnerBackend(), ...)
, i.e. when you'd want to do one or the other and the advantages/disadvantages.The text was updated successfully, but these errors were encountered: