xref: /petsc/src/mat/impls/aij/seq/crl/crl.h (revision 2205254efee3a00a594e5e2a3a70f74dcb40bc03)
1 
2 #include <../src/mat/impls/aij/seq/aij.h>
3 
4 typedef struct {
5   PetscInt    nz;
6   PetscInt    m;        /* number of rows */
7   PetscInt    rmax;     /* maximum number of columns in a row */
8   PetscInt    ncols;    /* number of columns in each row */
9   PetscInt    *icols;   /* columns of nonzeros, stored one column at a time */
10   PetscScalar *acols;   /* values of nonzeros, stored as icols */
11 
12   /* these are only needed for the parallel case */
13   Vec         xwork,fwork;
14   VecScatter  xscat;  /* gathers the locally needed part of global vector */
15   PetscScalar *array; /* array used to create xwork */
16 } Mat_AIJCRL;
17