# KSPLSQRSetComputeStandardErrorVec
Compute a vector of standard error estimates during `KSPSolve()` for  `KSPLSQR`. 
## Synopsis
```
#include "petscksp.h" 
PetscErrorCode KSPLSQRSetComputeStandardErrorVec(KSP ksp, PetscBool flg)
```
Logically Collective


## Input Parameters

- ***ksp   -*** iterative context
- ***flg   -*** compute the vector of standard estimates or not





## Developer Note
Vaclav: I'm not sure whether this vector is useful for anything.


## See Also
 [](chapter_ksp), `KSPSolve()`, `KSPLSQR`, `KSPLSQRGetStandardErrorVec()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/ksp/ksp/impls/lsqr/lsqr.c.html#KSPLSQRSetComputeStandardErrorVec">src/ksp/ksp/impls/lsqr/lsqr.c</A>


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


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