IPMInnerProduct

Computes the inner products a vector x with a set of vectors (columns of Y).

Synopsis

#include "slepcip.h" 
PetscErrorCode IPMInnerProduct(IP ip,Vec x,PetscInt n,const Vec y[],PetscScalar *p)
Collective on IP and Vec

Input Parameters

ip - the inner product context
x - the first input vector
n - number of vectors in y
y - array of vectors

Output Parameter

p - result of the inner products

Notes

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

See Also

IPSetMatrix(), VecMDot(), IPInnerProduct()

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