# VecNormalize

Normalizes a vector by 2-norm.

### Synopsis

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

Collective on Vec

### Input Parameters

| x | - the vector

### Output Parameter

| x | - the normalized vector
| val | - the vector norm before normalization

Level:intermediate
Location: src/vec/interface/vector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages