int MatRestoreArray(Mat mat,Scalar **v)Not Collective
mat | - the matrix |
v | - the location of the values |
Mat mat Scalar mat_array(1) PetscOffset i_mat int ierr call MatGetArray(mat,mat_array,i_mat,ierr) C Access first local entry in matrix; note that array is C treated as one dimensional value = mat_array(i_mat + 1) [... other code ...] call MatRestoreArray(mat,mat_array,i_mat,ierr)
See the Fortran chapter of the users manual and petsc/src/mat/examples/tests for details
Level:advanced
Location:src/mat/interface/matrix.c
Matrix Index
Table of Contents