:orphan: # MatKAIJRestoreSRead Restore array obtained with `MatKAIJGetSRead()` ## Synopsis ``` #include "petscmat.h" PetscErrorCode MatKAIJRestoreSRead(Mat A, const PetscScalar **S) ``` Not Collective ## Input Parameters - ***A -*** the `MATKAIJ` matrix - ***S -*** 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 [](ch_matrices), `Mat`, `MATKAIJ`, `MatKAIJGetS()`, `MatKAIJGetSRead()`, `MatKAIJRestoreSRead()` ## Level advanced ## Location src/mat/impls/kaij/kaij.c --- [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](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)