PETSc version 3.17.0
Fix/Edit manual page

# VecNormalize

Normalizes a vector by 2-norm.

### Synopsis

    #include "petscvec.h"
    PetscErrorCode  VecNormalize(Vec x,PetscReal *val)

Collective on Vec

### Input Parameter

| x | - the vector

### Output Parameter

| val | - the vector norm before normalization

### Level

intermediate

### Location

src/vec/vec/interface/rvector.c

### Examples

src/ksp/ksp/tutorials/ex49.c.html
src/ksp/ksp/tutorials/ex67.c.html
src/snes/tutorials/ex62.c.html
src/snes/tutorials/ex69.c.html
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages