MatGetRowIJ

Returns the compressed row storage i and j indices for sequential matrices.

Synopsis

#include "petscmat.h" 
int MatGetRowIJ(Mat mat,int shift,PetscTruth symmetric,int *n,int **ia,int** ja,PetscTruth *done)
Collective on Mat

Input Parameters

mat - the matrix
shift - 0 or 1 indicating we want the indices starting at 0 or 1
symmetric - PETSC_TRUE or PETSC_FALSE indicating the matrix data structure should be symmetrized

Output Parameters

n - number of rows in the (possibly compressed) matrix
ia - the row pointers
ja - the column indices
done - PETSC_TRUE or PETSC_FALSE, indicating whether the values have been returned

See Also

MatGetColumnIJ(), MatRestoreRowIJ()

Level:developer
Location:
src/mat/interface/matrix.c
Index of all Mat routines
Table of Contents for all manual pages
Index of all manual pages