VecDot

Computes the vector dot product.

Synopsis

int VecDot(Vec x, Vec y, Scalar *val)
Collective on Vec

Input Parameters

x, y -the vectors

Output Parameter

alpha -the dot product

Notes for Users of Complex Numbers

For complex vectors, VecDot() computes
    val = (x,y) = y^H x,
where y^H denotes the conjugate transpose of y.

Use VecTDot() for the indefinite form

    val = (x,y) = y^T x,
where y^T denotes the transpose of y.

Keywords

vector, dot product, inner product

See Also

VecMDot(), VecTDot()

Examples

src/vec/examples/tutorials/ex1f.F
src/vec/examples/tutorials/ex1f90.F
src/vec/examples/tutorials/ex1.c

Location: src/vec/interface/vector.c
Vector Index
Table of Contents