# TaoGradientNorm
Compute the norm with respect to the norm the user has set. 
## Synopsis
```
#include "petsctao.h" 
PetscErrorCode TaoGradientNorm(Tao tao, Vec gradient, NormType type, PetscReal *gnorm)
```
Collective on tao


## Input Parameters

- ***tao      -*** the Tao context
- ***gradient -*** the gradient to be computed
- ***norm     -*** the norm type



## Output Parameter

- ***gnorm    -*** the gradient norm





## See Also
 `Tao`, `TaoSetGradientNorm()`, `TaoGetGradientNorm()`

## Level
developer

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/tao/interface/taosolver.c.html#TaoGradientNorm">src/tao/interface/taosolver.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/tao/interface/taosolver.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)  
