:orphan:
# MatGetBrowsOfAcols
Returns `IS` that contain rows of `B` that equal to nonzero columns of local `A`
## Synopsis
```
#include "petscmat.h"
PetscErrorCode MatGetBrowsOfAcols(Mat A, Mat B, MatReuse scall, IS *rowb, IS *colb, Mat *B_seq)
```
Collective
## Input Parameters
- ***A -*** the first matrix in `MATMPIAIJ` format
- ***B -*** the second matrix in `MATMPIAIJ` format
- ***scall -*** either `MAT_INITIAL_MATRIX` or `MAT_REUSE_MATRIX`
## Output Parameters
- ***rowb -*** On input index sets of rows of B to extract (or `NULL`), modified on output
- ***colb -*** On input index sets of columns of B to extract (or `NULL`), modified on output
- ***B_seq -*** the sequential matrix generated
## See Also
`Mat`, `MATMPIAIJ`, `IS`, `MatReuse`
## Level
developer
## Location
src/mat/impls/aij/mpi/mpiaij.c
## Implementations
MatGetBrowsOfAcols_MPIXAIJ in src/mat/impls/aij/mpi/mpiaij.c
---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/mat/impls/aij/mpi/mpiaij.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)