petsc-3.3-p7 2013-05-11

VecDotNorm2

computes the inner product of two vectors and the 2-norm squared of the second vector

Synopsis

#include "petscvec.h" 
PetscErrorCode  VecDotNorm2(Vec s,Vec t,PetscScalar *dp, PetscScalar *nm)
Collective on Vec

Input Parameter

s - first vector
t - second vector

Output Parameter

dp - s't
nm - t't

Developer Notes: Even though the second return argument is a norm and hence could be a PetscReal value it is returned as PetscScalar

See Also

VecDot(), VecNorm(), VecDotBegin(), VecNormBegin(), VecDotEnd(), VecNormEnd()

Keywords

vector, sqrt, square root

Level:advanced
Location:
src/vec/vec/utils/vinv.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages