:orphan:
# TaoLineSearchView
Prints information about the `TaoLineSearch`
## Synopsis
```
#include "petsctaolinesearch.h"
PetscErrorCode TaoLineSearchView(TaoLineSearch ls, PetscViewer viewer)
```
Collective
## InputParameters
- ***ls -*** the `TaoLineSearch` context
- ***viewer -*** visualization context
## Options Database Key
- ***-tao_ls_view -*** Calls `TaoLineSearchView()` at the end of each line search
## Notes
The available visualization contexts include
- ***`PETSC_VIEWER_STDOUT_SELF` -*** standard output (default)
- ***`PETSC_VIEWER_STDOUT_WORLD` -*** synchronized standard
output where only the first processor opens
the file. All other processors send their
data to the first processor to print.
## See Also
[](ch_tao), `Tao`, `TaoLineSearch`, `PetscViewerASCIIOpen()`, `TaoLineSearchViewFromOptions()`
## Level
beginner
## Location
src/tao/linesearch/interface/taolinesearch.c
## Implementations
TaoLineSearchView_Armijo in src/tao/linesearch/impls/armijo/armijo.c
TaoLineSearchView_GPCG in src/tao/linesearch/impls/gpcglinesearch/gpcglinesearch.c
TaoLineSearchView_OWArmijo in src/tao/linesearch/impls/owarmijo/owarmijo.c
TaoLineSearchView_Unit in src/tao/linesearch/impls/unit/unit.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)