MatRestoreRowIJ#
Call after you are completed with the ia,ja indices obtained with MatGetRowIJ().
Synopsis#
#include "petscmat.h"
PetscErrorCode MatRestoreRowIJ(Mat mat, PetscInt shift, PetscBool symmetric, PetscBool inodecompressed, PetscInt *n, const PetscInt *ia[], const PetscInt *ja[], PetscBool *done)
Collective
Input Parameters#
mat - the matrix
shift - 1 or zero indicating we want the indices starting at 0 or 1
symmetric -
PETSC_TRUEorPETSC_FALSEindicating the matrix data structure should be symmetrizedinodecompressed -
PETSC_TRUEorPETSC_FALSEindicating if the nonzero structure of the inodes or the nonzero elements is wanted. ForMATBAIJmatrices the compressed version is always used.n - size of (possibly compressed) matrix, or
NULLia - the row pointers, or
NULLja - the column indices, or
NULL
Output Parameter#
done -
PETSC_TRUEorPETSC_FALSEindicated that the values have been returned
Note#
This routine zeros out n, ia, and ja if they are provided. Use of ia or ja after MatRestoreRowIJ() is always invalid.
See Also#
Matrices, Mat, MatGetRowIJ(), MatRestoreColumnIJ()
Level#
developer
Location#
Implementations#
MatRestoreRowIJ_MPIAdj() in src/mat/impls/adj/mpi/mpiadj.c
MatRestoreRowIJ_MPIAIJ() in src/mat/impls/aij/mpi/mpiaij.c
MatRestoreRowIJ_SeqAIJ() in src/mat/impls/aij/seq/aij.c
MatRestoreRowIJ_SeqBAIJ() in src/mat/impls/baij/seq/baij.c
MatRestoreRowIJ_SeqSBAIJ() in src/mat/impls/sbaij/seq/sbaij.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages