petsc-3.14.6 2021-03-30
Report Typos and Errors

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

Examples

src/ksp/ksp/tutorials/ex21.c.html
src/ksp/ksp/tutorials/ex29.c.html
src/ksp/ksp/tutorials/ex34.c.html
src/ksp/ksp/tutorials/ex76.c.html
src/ksp/ksp/tutorials/ex77.c.html
src/ksp/ksp/tutorials/ex77f.F90.html
src/snes/tutorials/ex48.c.html
src/ts/tutorials/ex14.c.html
src/tao/bound/tutorials/jbearing2.c.html

Implementations

MatNorm_MPIAIJ in src/mat/impls/aij/mpi/mpiaij.c
MatNorm_SeqAIJ in src/mat/impls/aij/seq/aij.c
MatNorm_MPIBAIJ in src/mat/impls/baij/mpi/mpibaij.c
MatNorm_SeqBAIJ in src/mat/impls/baij/seq/baij2.c
MatNorm_MPIDense in src/mat/impls/dense/mpi/mpidense.c
MatNorm_SeqDense in src/mat/impls/dense/seq/dense.c
MatNorm_Elemental in src/mat/impls/elemental/matelem.cxx
MatNorm_HARA in src/mat/impls/hara/mathara.cu
MatNorm_MPISBAIJ in src/mat/impls/sbaij/mpi/mpisbaij.c
MatNorm_SeqSBAIJ in src/mat/impls/sbaij/seq/sbaij2.c
MatNorm_ScaLAPACK in src/mat/impls/scalapack/matscalapack.c

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