:orphan:
# MatFindZeroRows
Locate all rows that are completely zero in the matrix 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatFindZeroRows(Mat mat, IS *zerorows)
```

## Input Parameter

- ***A  -*** the matrix



## Output Parameter

- ***zerorows -*** the rows that are completely zero





## Note
`zerorows` is set to `NULL` if no rows are zero.


## See Also
 [](ch_matrices), `Mat`, `MatFindNonzeroRows()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatFindZeroRows">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](/manualpages/index.md)  
[Index of all manual pages](/manualpages/singleindex.md)  
