| Variable | Meaning | Value |
|---|---|---|
| ia(_JT_ idim_) | leading dimension | 3 |
| ia(_JT_ nrows_) | number of rows | 2 |
| ia(_JT_ maxnz_) | maximum number of non-zero elements in any column | 4 |
In this format, all zeros are removed from each row, so that the matrix is essentially left-justified, and the main diagonal elements are stored in the first column. Thus the coefficient is stored in an ia(_JT_ nrows_) x ia(_JT_ maxnz_) array. A companion ia(_JT_ nrows_) x ia(_JT_ maxnz_) array maps the column in the reduced matrix to the column in the original matrix for each element. NSPCG calls this primary format, but does not require the main diagonal elements to be in the first column. Example:
would be represented in ELL format by the arrays a and ja as follows:
Note that the main diagonal elements must be in the first column of array a.