# MatShellTestMultTranspose
Compares the multiply transpose routine provided to the `MATSHELL` with differencing on a given function. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatShellTestMultTranspose(Mat mat, PetscErrorCode (*f)(void *, Vec, Vec), Vec base, void *ctx, PetscBool *flg)
```
Logically Collective; No Fortran Support


## Input Parameters

- ***mat -*** the `MATSHELL` shell matrix
- ***f -*** the function
- ***base -*** differences are computed around this vector, see `MatMFFDSetBase()`, for Jacobians this is the point at which the Jacobian is being evaluated
- ***ctx -*** an optional context for the function



## Output Parameter

- ***flg -*** `PETSC_TRUE` if the multiply is likely correct



## Options Database Key

- ***-mat_shell_test_mult_view -*** print if any differences are detected between the products and print the difference





## See Also
 `MATSHELL`, `MatCreateShell()`, `MatShellGetContext()`, `MatShellGetOperation()`, `MatShellTestMult()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/shell/shell.c.html#MatShellTestMultTranspose">src/mat/impls/shell/shell.c</A>


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