Skip to content

Evaluation Hessian of a Control paramater + Eigendecomposition #3312

Discussion options

You must be logged in to vote

The operation you are trying to do is above the level of Firedrake. Firedrake (and pyadjoint) can give you the hessian action, as described above. You need to wrap this in a PETSc matrix object in order to then have slepc do a matrix-free Eigen problem. You can take inspiration for the construction of the matrix from the way that we construct matrix-free petsc Mats using a form action. This is described in the documentation here: https://www.firedrakeproject.org/matrix-free.html#matrix-free-operators and that links to the code for ImplicitMatrix and ImplicitMatrix context. Note that you can't use that code directly because it's for the Firedrake case where the matrix action is given by as…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@casanovamaxime
Comment options

@dham
Comment options

dham Jan 10, 2024
Maintainer

Answer selected by casanovamaxime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants