:orphan:
# TaoLineSearchReset
Some line searches may carry state information from one `TaoLineSearchApply()` to the next. This function resets this state information.
## Synopsis
```
#include "petsctaolinesearch.h"
PetscErrorCode TaoLineSearchReset(TaoLineSearch ls)
```
Collective
## Input Parameter
- ***ls -*** the `TaoLineSearch` context
## See Also
[](ch_tao), `Tao`, `TaoLineSearch`, `TaoLineSearchCreate()`, `TaoLineSearchApply()`
## Level
developer
## Location
src/tao/linesearch/interface/taolinesearch.c
## Implementations
TaoLineSearchReset_Armijo in src/tao/linesearch/impls/armijo/armijo.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/linesearch/interface/taolinesearch.c)
[Index of all TaoLineSearch routines](index.md)
[Table of Contents for all manual pages](/manualpages/index.md)
[Index of all manual pages](/manualpages/singleindex.md)