# MatRestoreRowUpperTriangular
Disable calls to `MatGetRow()` for matrix in `MATSBAIJ` format. 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatRestoreRowUpperTriangular(Mat mat)
```
Not Collective


## Input Parameters

- ***mat -*** the matrix



## Note
This routine should be called after you have finished calls to `MatGetRow()` and `MatRestoreRow()`.




## See Also
 `MATSBAIJ`, `MatGetRowUpperTriangular()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/interface/matrix.c.html#MatRestoreRowUpperTriangular">src/mat/interface/matrix.c</A>

## Implementations

<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/sbaij/mpi/mpisbaij.c.html#MatRestoreRowUpperTriangular_MPISBAIJ">MatRestoreRowUpperTriangular_MPISBAIJ in src/mat/impls/sbaij/mpi/mpisbaij.c</A><BR>
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/sbaij/seq/sbaij.c.html#MatRestoreRowUpperTriangular_SeqSBAIJ">MatRestoreRowUpperTriangular_SeqSBAIJ in src/mat/impls/sbaij/seq/sbaij.c</A><BR>


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