STNorm
Computes de norm of a vector as the square root of the inner product (x,x) as defined by STInnerProduct().
Synopsis
#include "slepcst.h"
PetscErrorCode STNorm(ST st,Vec x,PetscReal *norm)
Collective on ST and Vec
Input Parameters
| st | - the spectral transformation context
|
| x | - input vector
|
Output Parameter
norm - the computed norm
Notes
This function will usually compute the 2-norm of a vector, ||x||_2. But
this behaviour may be different if using a non-standard inner product changed
via STSetBilinearForm(). For example, if using the B-inner product for
positive definite B, (x,y)_B=y^H Bx, then the computed norm is ||x||_B =
sqrt( x^H Bx ).
See Also
STInnerProduct()
Location: src/st/interface/stsolve.c
Index of all ST routines
Table of Contents for all manual pages
Index of all manual pages