petsc-3.9.4 2018-09-11
Report Typos and Errors


Call after you are completed with the ia,ja indices obtained with MatGetColumnIJ().


#include "petscmat.h" 
PetscErrorCode MatRestoreColumnIJ(Mat mat,PetscInt shift,PetscBool symmetric,PetscBool inodecompressed,PetscInt *n,const PetscInt *ia[],const PetscInt *ja[],PetscBool  *done)
Collective on Mat

Input Parameters

mat - the matrix
shift - 1 or zero indicating we want the indices starting at 0 or 1
symmetric - PETSC_TRUE or PETSC_FALSE indicating the matrix data structure should be symmetrized
inodecompressed -PETSC_TRUE or PETSC_FALSE indicating if the nonzero structure of the inodes or the nonzero elements is wanted. For BAIJ matrices the compressed version is always used.

Output Parameters

n - size of (possibly compressed) matrix
ia - the column pointers
ja - the row indices
done - PETSC_TRUE or PETSC_FALSE indicated that the values have been returned

See Also

MatGetColumnIJ(), MatRestoreRowIJ()






MatRestoreColumnIJ_SeqAIJ in src/mat/impls/aij/seq/aij.c
MatRestoreColumnIJ_SeqAIJ_Color in src/mat/impls/aij/seq/aij.c
MatRestoreColumnIJ_SeqAIJ_Inode in src/mat/impls/aij/seq/inode.c
MatRestoreColumnIJ_SeqBAIJ in src/mat/impls/baij/seq/baij.c
MatRestoreColumnIJ_SeqBAIJ_Color in src/mat/impls/baij/seq/baij.c
MatRestoreColumnIJ_SeqSELL_Color in src/mat/impls/sell/seq/fdsell.c

Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages