# MatKAIJRestoreTRead
Restore array obtained with `MatKAIJGetTRead()` 
## Synopsis
```
#include "petscmat.h" 
PetscErrorCode MatKAIJRestoreTRead(Mat A, const PetscScalar **T)
```
Not collective


## Input Parameter

- ***A -*** the `MATKAIJ` matrix



## Output Parameter

- ***T -*** location of pointer to array obtained with `MatKAIJGetS()`



## Note
This routine zeros the array pointer to prevent accidental reuse after it has been restored.
If NULL is passed, it will not attempt to zero the array pointer.




## See Also
 `MATKAIJ`, `MatKAIJGetT()`, `MatKAIJGetTRead()`, `MatKAIJRestoreTRead()`

## Level
advanced

## Location
<A HREF="PETSC_DOC_OUT_ROOT_PLACEHOLDER/src/mat/impls/kaij/kaij.c.html#MatKAIJRestoreTRead">src/mat/impls/kaij/kaij.c</A>


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