Skip to content

Compute Gramians of Jacobians by combining vjp and jvp #149

Description

@PierreQuinton

If $J$ is the Jacobian of some $f$ at some $x$, then we compute the jacobian using vmap on jvp or vjp, then we compute the Gramian by computing $JJ^\top$.
What we could do is to compose vjp and jvp and use vmap on that to compute the Gramian directly without conputing the full Jacobian. This should be much faster.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions