:orphan: # MatGetOwnershipRangeColumn Returns the range of matrix columns associated with rows of a vector one multiplies this matrix by that are owned by this processor. (The columns of the "diagonal block" for most sparse matrix formats). See [Matrix Layouts](sec_matlayout) for details on matrix layouts. ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatGetOwnershipRangeColumn(Mat mat, PetscInt *m, PetscInt *n) ``` Not Collective, unless matrix has not been allocated, then collective ## Input Parameter - ***mat -*** the matrix ## Output Parameters - ***m -*** the global index of the first local column, use `NULL` to not obtain this value - ***n -*** one more than the global index of the last local column, use `NULL` to not obtain this value ## See Also [](ch_matrices), `Mat`, `MatGetOwnershipRange()`, `MatGetOwnershipRanges()`, `MatGetOwnershipRangesColumn()`, `PetscLayout` ## Level developer ## Location src/mat/interface/matrix.c ## Examples src/ksp/ksp/tutorials/ex27.c
src/mat/tutorials/ex10.c
src/snes/tutorials/ex48.c
--- [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)