IPInnerProduct

Computes the inner product of two vectors.

Synopsis

#include "slepcip.h" 
PetscErrorCode IPInnerProduct(IP ip,Vec x,Vec y,PetscScalar *p)
Collective on IP and Vec

Input Parameters

ip - the inner product context
x - input vector
y - input vector

Output Parameter

p - result of the inner product

Notes

This function will usually compute the standard dot product of vectors x and y, (x,y)=y^H x. However this behaviour may be different if changed via IPSetBilinearForm(). This allows use of other inner products such as the indefinite product y^T x for complex symmetric problems or the B-inner product for positive definite B, (x,y)_B=y^H Bx.

See Also

IPSetBilinearForm(), IPApplyB(), VecDot(), IPMInnerProduct()

Location: src/ip/ipdot.c
Index of all IP routines
Table of Contents for all manual pages
Index of all manual pages