1: #pragma once
3: #include <../src/ksp/ksp/utils/lmvm/lmvm.h>
5: /*
6: Limited-memory Broyden's method for approximating the inverse of
7: a Jacobian.
8: */
10: typedef struct {
11: Vec *P, *Q;
12: PetscBool allocated, needP, needQ;
13: PetscReal *yty, *yts;
14: PetscReal *sts, *stq;
15: } Mat_Brdn;