SlepcVecNormalize

Normalizes a possibly complex vector by the 2-norm.

Synopsis

#include "slepcsys.h" 
PetscErrorCode SlepcVecNormalize(Vec xr,Vec xi,PetscTruth iscomplex,PetscReal *norm)
Not collective

Input parameters

xr - the real part of the vector (overwritten on output) + xi - the imaginary part of the vector (not referenced if iscomplex is false)
iscomplex - a flag that indicating if the vector is complex

Output parameter

norm - the vector norm before normalization (can be set to PETSC_NULL)

Location: src/sys/slepcutil.c
Index of all sys routines
Table of Contents for all manual pages
Index of all manual pages