:orphan: # MatLMVMSetJ0Diag Allows the user to define a vector V such that J0 = diag(V). ## Synopsis ``` #include "petscksp.h" PetscErrorCode MatLMVMSetJ0Diag(Mat B, Vec V) ``` ## Input Parameters - ***B -*** An LMVM-type matrix - ***V -*** Vector that defines the diagonal of the initial Jacobian ## See Also [](ch_ksp), [LMVM Matrices](sec_matlmvm), `MATLMVM`, `MatLMVMSetScale()`, `MatLMVMSetJ0()` ## Level advanced ## Location src/ksp/ksp/utils/lmvm/lmvmutils.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/ksp/utils/lmvm/lmvmutils.c) [Index of all KSP routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)