Data Storage
Full-Storage Format for Vectors
All elements in a vector are stored.
Sparse Matrix Storage Format
The compressed sparse row (CSR) format is specified by the following arrays: value, column, and pointerB, For the conjugate gradient (CG) method, only the upper or lower triangular part of a matrix is stored.
as described in Table 1.
Array |
Description |
|---|---|
value |
|
column |
|
pointerB |
|
Matrix A
can be represented in CSR format as in Table 2.
When the CG method is used, only the upper triangular matrix needs to be stored. See Table 3.
Parent topic: Data Types and Data Storage

