# TaoSetLMVMMatrix
Sets an external LMVM matrix into the Tao solver. Valid only for quasi-Newton family of methods. 
## Synopsis
```
#include "petsctao.h" 
#include "petscmat.h" 
PetscErrorCode TaoSetLMVMMatrix(Tao tao, Mat B)
```
QN family of methods create their own LMVM matrices and users who wish to
manipulate this matrix should use TaoGetLMVMMatrix() instead.


## Input Parameters

- ***tao -*** Tao solver context
- ***B -*** LMVM matrix





## See Also
 `TAOBQNLS`, `TAOBQNKLS`, `TAOBQNKTL`, `TAOBQNKTR`, `MATLMVM`, `TaoGetLMVMMatrix()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/bound/impls/bqnk/bqnk.c.html#TaoSetLMVMMatrix">src/tao/bound/impls/bqnk/bqnk.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/bound/impls/bqnk/bqnk.c)


[Index of all Tao routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
