# MatGetOwnershipRangesColumn
Returns the ranges of matrix columns associated with rows of a vector one multiplies this vector by that are owned by each processor. (The columns of the "diagonal blocks", for most sparse matrix formats). See :any:`<sec_matlayout>` for details on matrix layouts. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatGetOwnershipRangesColumn(Mat mat, const PetscInt **ranges)
```
Not Collective, unless matrix has not been allocated, then collective on Mat


## Input Parameters

- ***mat -*** the matrix



## Output Parameters

- ***ranges -*** start of each processors portion plus one more then the total length at the end





## See Also
 `Mat`, `MatGetOwnershipRange()`, `MatGetOwnershipRangeColumn()`, `MatGetOwnershipRanges()`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatGetOwnershipRangesColumn">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)  
