:orphan:
# MatInfoType
Indicates if you want information about the local part of the matrix, the entire parallel matrix or the maximum over all the local parts. 
## Synopsis
```
typedef enum {
  MAT_LOCAL      = 1,
  MAT_GLOBAL_MAX = 2,
  MAT_GLOBAL_SUM = 3
} MatInfoType;
```

## Values

- ***`MAT_LOCAL` -*** values for each MPI process part of the matrix
- ***`MAT_GLOBAL_MAX` -*** maximum of each value over all MPI processes
- ***`MAT_GLOBAL_SUM` -*** sum of each value over all MPI processes





## See Also
 [](ch_matrices), `MatGetInfo()`, `MatInfo`

## Level
beginner

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/include/petscmat.h.html#MatInfoType">include/petscmat.h</A>

## Examples
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/tutorials/ex16.c.html">src/mat/tutorials/ex16.c</A><BR>


---
[Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/include/petscmat.h)


[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)  
