:orphan: # NORM_1_AND_2 computes both the 1 and 2 norm of a vector. The values are stored in two adjacent `PetscReal` memory locations ## See Also [](ch_vectors), `NormType`, `MatNorm()`, `VecNorm()`, `VecNormBegin()`, `VecNormEnd()`, `NORM_1`, `NORM_2`, `NORM_FROBENIUS`, `NORM_INFINITY` ## Level beginner ## Location include/petscvec.h --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscvec.h) [Index of all Vec routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)