# MatHasCongruentLayouts
Determines whether the rows and columns layouts of the matrix are congruent 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatHasCongruentLayouts(Mat mat, PetscBool *cong)
```
Collective


## Input Parameters

- ***mat -*** the matrix



## Output Parameter

- ***cong -*** either `PETSC_TRUE` or `PETSC_FALSE`





## See Also
 `MatCreate()`, `MatSetSizes()`, `PetscLayout`

## Level
beginner

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


---
[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)  
