:orphan:
# MatScaLAPACKGetBlockSizes
Gets the block sizes used in the distribution of the `MATSCALAPACK` matrix 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatScaLAPACKGetBlockSizes(Mat A, PetscInt *mb, PetscInt *nb)
```
Not Collective


## Input Parameter

- ***A  -*** a `MATSCALAPACK` matrix



## Output Parameters

- ***mb -*** the row block size
- ***nb -*** the column block size





## Note
This block size has a different meaning from the block size associated with `MatSetBlockSize()` used for sparse matrices


## See Also
 [](ch_matrices), `Mat`, `MATSCALAPACK`, `MatCreateScaLAPACK()`, `MatScaLAPACKSetBlockSizes()`

## Level
intermediate

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/scalapack/matscalapack.c.html#MatScaLAPACKGetBlockSizes">src/mat/impls/scalapack/matscalapack.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/scalapack/matscalapack.c.html#MatScaLAPACKGetBlockSizes_ScaLAPACK">MatScaLAPACKGetBlockSizes_ScaLAPACK in src/mat/impls/scalapack/matscalapack.c</A><BR>


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