petsc-3.3-p7 2013-05-11

MatNorm

Calculates various norms of a matrix.

Synopsis

#include "petscmat.h" 
PetscErrorCode  MatNorm(Mat mat,NormType type,PetscReal *nrm)
Collective on Mat

Input Parameters

mat - the matrix
type - the type of norm, NORM_1, NORM_FROBENIUS, NORM_INFINITY

Output Parameters

nrm -the resulting norm

Level:intermediate
Location:
src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages

Examples

src/ksp/ksp/examples/tutorials/ex40.c.html
src/snes/examples/tutorials/ex48.c.html
src/ts/examples/tutorials/ex14.c.html