#include "slepclme.h" PetscErrorCode LMEDenseHessLyapunovChol(LME lme,PetscInt m,PetscScalar *H,PetscInt ldh,PetscInt k,PetscScalar *B,PetscInt ldb,PetscScalar *U,PetscInt ldu,PetscReal *res)Logically Collective
lme | - linear matrix equation solver context | |
m | - number of rows and columns of H | |
H | - coefficient matrix | |
ldh | - leading dimension of H | |
k | - number of columns of B | |
B | - right-hand side matrix | |
ldb | - leading dimension of B | |
ldu | - leading dimension of U |
U | - Cholesky factor of the solution | |
res | - (optional) residual norm, on input it should contain H(m+1,m) |
When k=1 and the res argument is provided, the last row of X is used to compute the residual norm of a Lyapunov equation projected via Arnoldi.