Skip to content

Add laplacian operator #5

Description

@mavenlin

Immediate solution

Laplace operator is important for computing the kinetic energy, currently we have to use two nabla operators together with the trace. For example

  1. in the transpose rule of nabla,
    https://github.com/sail-sg/autofd/blob/main/autofd/operators/operators.py#L773

  2. in mgga functional of jax_xc,
    https://github.com/sail-sg/jax_xc/blob/main/gen_repo/experimental.jinja#L66

While we can do better with the jet rules.

In the long term

In the long term, I believe we need to have a jaxpr level graph rewriting tool, we can then introduce algebraic relationships that works more generally for any nested nabla operations.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions