Professional Documents
Culture Documents
The objective is to develop a compact storage scheme for symmetric band matrices.
One compact storage scheme for symmetric band matrices is the half-bandwidth storage
scheme. In this scheme, only the lower or upper triangular part of the matrix, along with
the diagonal, is stored in an array. The size of the array is equal to the number of non-
zero elements in the triangular part plus the number of diagonal elements.
The corresponding gaxpy algorithm for a symmetric band matrix stored in the half-
bandwidth storage scheme is as follows:
Here is the dimension of the matrix, is the array storing the matrix, is the half-
bandwidth, is the input vector, and is the output vector. The nested loops iterate over
the non-zero elements of the matrix, and the indices are adjusted based on the half-
bandwidth storage scheme.
Hence, the compact storage scheme for symmetric band matrices is the half-bandwidth
storage scheme. The corresponding algorithm is given above.