VecDotRealPart#
Computes the real part of the vector dot product.
Synopsis#
#include "petscvec.h"
PetscErrorCode VecDotRealPart(Vec x, Vec y, PetscReal *val)
Collective
Input Parameters#
x - first vector
y - second vector
Output Parameter#
val - the real part of the dot product;
Notes for Users of Complex Numbers#
See VecDot()
for more details on the definition of the dot product for complex numbers
For real numbers this returns the same value as VecDot()
For complex numbers in C^n (that is a vector of n components with a complex number for each component) this is equal to the usual real dot product on the the space R^{2n} (that is a vector of 2n components with the real or imaginary part of the complex numbers for components)
Developer Notes#
This is not currently optimized to compute only the real part of the dot product.
See Also#
Vectors and Parallel Data, Vec
, VecMDot()
, VecTDot()
, VecNorm()
, VecDotBegin()
, VecDotEnd()
, VecDot()
, VecDotNorm2()
Level#
intermediate
Location#
src/vec/vec/interface/rvector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages