# 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
 `TaoLineSearchCreate()`, `TaoLineSearchApply()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/linesearch/interface/taolinesearch.c.html#TaoLineSearchReset">src/tao/linesearch/interface/taolinesearch.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/linesearch/impls/armijo/armijo.c.html#TaoLineSearchReset_Armijo">TaoLineSearchReset_Armijo in src/tao/linesearch/impls/armijo/armijo.c</A><BR>


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