# VecNormEnd

Ends a split phase norm computation.

### Synopsis

    #include "petscvec.h"
    PetscErrorCode PETSCVEC_DLLEXPORT VecNormEnd(Vec x,NormType ntype,PetscReal *result)

### Input Parameters

| x | - the first vector (can be PETSC_NULL)
| ntype | - norm type, one of NORM_1, NORM_2, NORM_MAX, NORM_1_AND_2
| result | - where the result will go

### C++ variants

| PetscReal VecNormEnd(Vec x) |  | -> |  | VecNormEnd(x,NORM_2,&s); return s;
| PetscReal VecNormEnd(Vec x,NormType t) |  | -> |  | VecNormEnd(x,t,&s); return s;

### Notes

Each call to VecNormBegin() should be paired with a call to VecNormEnd().

### See Also

VecNormBegin(), VecNorm(), VecDot(), VecMDot(), VecDotBegin(), VecDotEnd()

Level:advanced
Location:src/vec/utils/comb.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

src/vec/examples/tutorials/ex17.c.html