# 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
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/pc/impls/lmvm/lmvmpc.c.html#PCLMVMSetMatLMVM">src/ksp/pc/impls/lmvm/lmvmpc.c</A>


---
[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](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
