:orphan: # PCLMVMSetMatLMVM Replaces the `MATLMVM` matrix inside the preconditioner with the one provided by the user. ## Synopsis ``` #include "petscpc.h" PetscErrorCode PCLMVMSetMatLMVM(PC pc, Mat B) ``` ## Input Parameters - ***pc -*** An `PCLMVM` preconditioner - ***B -*** An LMVM-type matrix (`MATLMVM`, `MATLDFP`, `MATLBFGS`, `MATLSR1`, `MATLBRDN`, `MATLMBRDN`, `MATLSBRDN`) ## See Also `PCLMVM`, `MATLDFP`, `MATLBFGS`, `MATLSR1`, `MATLBRDN`, `MATLMBRDN`, `MATLSBRDN`, `PCLMVMGetMatLMVM()` ## Level intermediate ## Location src/ksp/pc/impls/lmvm/lmvmpc.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/ksp/pc/impls/lmvm/lmvmpc.c) [Index of all PC routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)