NORM_2#

the two norm, ||v|| = sqrt(sum_i |v_i|^2) (vectors only)

See Also#

Vectors and Parallel Data, NormType, MatNorm(), VecNorm(), VecNormBegin(), VecNormEnd(), NORM_1, NORM_FROBENIUS, NORM_INFINITY, NORM_1_AND_2

Level#

beginner

Location#

include/petscvec.h

Examples#

src/dm/impls/stag/tutorials/ex1.c
src/dm/impls/stag/tutorials/ex2.c
src/dm/impls/stag/tutorials/ex3.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/tutorials/ex10.c
src/ksp/ksp/tutorials/bench_kspsolve.c
src/ksp/ksp/tutorials/ex1.c
src/ksp/ksp/tutorials/ex100.c
src/ksp/ksp/tutorials/ex100f.F90
src/ksp/ksp/tutorials/ex11.c
src/ksp/ksp/tutorials/ex11f.F90


Edit on GitLab

Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages