#include "petscvec.h" PetscErrorCode VecNormEnd(Vec x,NormType ntype,PetscReal *result)
x | - the first vector | |
ntype | - norm type, one of NORM_1, NORM_2, NORM_MAX, NORM_1_AND_2 | |
result | - where the result will go |
The x vector is not allowed to be NULL, otherwise the vector would not have its correctly cached norm value