# VecMTDot
Computes indefinite vector multiple dot products. That is, it does NOT use the complex conjugate. 
## Synopsis
```
#include "petscvec.h"   
PetscErrorCode VecMTDot(Vec x, PetscInt nv, const Vec y[], PetscScalar val[])
```
Collective on Vec


## Input Parameters

- ***x -*** one vector
- ***nv -*** number of vectors
- ***y -*** array of vectors.  Note that vectors are pointers



## Output Parameter

- ***val -*** array of the dot products



## Notes for Users of Complex Numbers
For complex vectors, VecMTDot() computes the indefinite form
```none
val = (x,y) = y^T x,
```
where y^T denotes the transpose of y.

Use VecMDot() for the inner product
```none
val = (x,y) = y^H x,
```
where y^H denotes the conjugate transpose of y.




## See Also
 `VecMDot()`, `VecTDot()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/interface/rvector.c.html#VecMTDot">src/vec/vec/interface/rvector.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/mpi/kokkos/mpikok.kokkos.cxx.html#VecMTDot_MPIKokkos">VecMTDot_MPIKokkos in src/vec/vec/impls/mpi/kokkos/mpikok.kokkos.cxx</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/mpi/pvec2.c.html#VecMTDot_MPI">VecMTDot_MPI in src/vec/vec/impls/mpi/pvec2.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/nest/vecnest.c.html#VecMTDot_Nest">VecMTDot_Nest in src/vec/vec/impls/nest/vecnest.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/seq/dvec2.c.html#VecMTDot_Seq">VecMTDot_Seq in src/vec/vec/impls/seq/dvec2.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/seq/kokkos/veckok.kokkos.cxx.html#VecMTDot_SeqKokkos">VecMTDot_SeqKokkos in src/vec/vec/impls/seq/kokkos/veckok.kokkos.cxx</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx.html#VecMTDot_SeqViennaCL">VecMTDot_SeqViennaCL in src/vec/vec/impls/seq/seqviennacl/vecviennacl.cxx</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/vec/vec/interface/rvector.c)


[Index of all Vec routines](index.md)  
[Table of Contents for all manual pages](/docs/manualpages/index.md)  
[Index of all manual pages](/docs/manualpages/singleindex.md)  
