# MatMultHermitianTransposeAdd
Computes v3 = v2 + A^H * v1. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatMultHermitianTransposeAdd(Mat mat, Vec v1, Vec v2, Vec v3)
```
Neighbor-wise Collective on mat


## Input Parameters

- ***mat -*** the matrix
- ***v1, v2 -*** the vectors



## Output Parameters

- ***v3 -*** the result



## Note
The vectors v1 and v3 cannot be the same.  I.e., one cannot
call `MatMultHermitianTransposeAdd`(A,v1,v2,v1).




## See Also
 `Mat`, `MatMultHermitianTranspose()`, `MatMultTranspose()`, `MatMultAdd()`, `MatMult()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatMultHermitianTransposeAdd">src/mat/interface/matrix.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/kokkos/aijkok.kokkos.cxx.html#MatMultHermitianTransposeAdd_SeqAIJKokkos">MatMultHermitianTransposeAdd_SeqAIJKokkos in src/mat/impls/aij/seq/kokkos/aijkok.kokkos.cxx</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu.html#MatMultHermitianTransposeAdd_SeqAIJCUSPARSE">MatMultHermitianTransposeAdd_SeqAIJCUSPARSE in src/mat/impls/aij/seq/seqcusparse/aijcusparse.cu</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/aij/seq/seqhipsparse/aijhipsparse.hip.c.html#MatMultHermitianTransposeAdd_SeqAIJHIPSPARSE">MatMultHermitianTransposeAdd_SeqAIJHIPSPARSE in src/mat/impls/aij/seq/seqhipsparse/aijhipsparse.hip.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/baij/seq/baij2.c.html#MatMultHermitianTransposeAdd_SeqBAIJ">MatMultHermitianTransposeAdd_SeqBAIJ in src/mat/impls/baij/seq/baij2.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/normal/normmh.c.html#MatMultHermitianTransposeAdd_Normal">MatMultHermitianTransposeAdd_Normal in src/mat/impls/normal/normmh.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/transpose/htransm.c.html#MatMultHermitianTransposeAdd_HT">MatMultHermitianTransposeAdd_HT in src/mat/impls/transpose/htransm.c</A><BR>


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


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