# VecMDot

Computes vector multiple dot products.

### Synopsis

    #include "petscvec.h"
    int VecMDot(int nv,Vec x,const Vec y[],PetscScalar *val)

Collective on Vec

### Input Parameters

| nv | - number of vectors
| x | - one vector
| y | - array of vectors.

### Output Parameter

val -array of the dot products

### Notes for Users of Complex Numbers

For complex vectors, VecMDot() computes

        val = (x,y) = y^H x,

where y^H denotes the conjugate transpose of y.

Use VecMTDot() for the indefinite form

        val = (x,y) = y^T x,

where y^T denotes the transpose of y.

### See Also

VecMTDot(), VecDot()

Level:intermediate
Location: src/vec/interface/vector.c
Index of all Vec routines
Table of Contents for all manual pages
Index of all manual pages

### Examples

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