# MatMultHermitianTransposeAddEqual
Compares matrix-vector products of two matrices. 
## Synopsis
```
#include "petscmat.h"  
PetscErrorCode MatMultHermitianTransposeAddEqual(Mat A, Mat B, PetscInt n, PetscBool *flg)
```
Collective on Mat


## Input Parameters

- ***A -*** the first matrix
- ***B -*** the second matrix
- ***n -*** number of random vectors to be tested



## Output Parameter

- ***flg -*** PETSC_TRUE if the products are equal; PETSC_FALSE otherwise.





## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/utils/multequal.c.html#MatMultHermitianTransposeAddEqual">src/mat/utils/multequal.c</A>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/utils/multequal.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)  
