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

Specify known sparsity pattern in mixed mode Jacobian #686

Open
ErikQQY opened this issue Jan 20, 2025 · 2 comments
Open

Specify known sparsity pattern in mixed mode Jacobian #686

ErikQQY opened this issue Jan 20, 2025 · 2 comments

Comments

@ErikQQY
Copy link
Contributor

ErikQQY commented Jan 20, 2025

In the mixed-mode Jacobian example in #684, how can we specify the known sparsity pattern in the backend construction? And the related documentation on mixed mode Jacobian is really scarce, maybe we can put the benchmarking example as documentation to illustrate how to exploit MixedMode Jacobian to achieve faster Jacobian computation.

(Open a new issue to not disrupt #684)

@adrhill
Copy link
Collaborator

adrhill commented Jan 20, 2025

There is KnownJacobianSparsityDetector, which you can use as a sparsity_detector within a AutoSparse backend.

@gdalle
Copy link
Member

gdalle commented Jan 20, 2025

Note however that this still won't allow you to manually specify which coefficients of the Jacobian should be computed with forward AD and which coefficients should be computed with reverse AD. The whole point of bidirectional coloring is to make this decision for you

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

3 participants