xref: /petsc/src/mat/impls/aij/mpi/mpiaij.h (revision e8d4e0b961827e7b3eb2f088182f4a74ed5a7ba0)
1 
2 #include "matimpl.h"
3 #include "math.h"
4 
5 /*  The i[] and j[] arrays start at 1 not zero to support Fortran 77 */
6 /*  In Fortran j[i[k]+p-1] is the pth column in row k */
7 
8 /*
9     singlemalloc indicates that a, i and j where all obtained with
10   one big malloc
11 */
12 typedef struct {
13   int    sorted, roworiented, nonew, singlemalloc;
14   int    m,n,nz,mem,*diag,       /* rows and columns */
15          *i,*imax, *ilen,        /* j + i[k] - 1  is start of row k */
16          *j;                     /* ilen is actual lenght of row */
17   Scalar *a;
18 } Matiaij;
19 
20 
21