MatANorm#
Computes the norm with respect to a matrix, i.e., \((x, x)_A^{1/2} = (x^H A x)^{1/2}\) where \(A\) is symmetric (Hermitian when using complex) positive definite.
Synopsis#
#include "petscmat.h"
PetscErrorCode MatANorm(Mat mat, Vec x, PetscReal *val)
Collective
Input Parameters#
mat - matrix used to define norm
x - the vector to compute the norm of
Output Parameter#
val - the norm with respect to
A
Note#
For complex vectors, MatANorm() computes
$val = (x,x)_A^{1/2} = (x^H A x)^{1/2},
$where $x^H$ denotes the conjugate transpose of `x`.
See Also#
Matrices, Mat, MatADot(), VecDot(), VecNorm(), MatMult(), MatMultAdd(), MatMultTransposeAdd()
Level#
intermediate
Location#
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages