On entry: the upper triangle of the
by
symmetric band matrix
, with the diagonal of the matrix stored in the
th row of the array, and the
superdiagonals within the band stored in the first
rows of the array. Each column of the matrix is stored in the corresponding column of the array. For example, if
and
, the storage scheme is
Elements in the top left corner of the array are not used. The following code assigns the matrix elements within the band to the correct elements of the array:
DO 20 J = 1, N
DO 10 I = MAX(1,J-M1+1), J
A(I-J+M1,J) = matrix(I,J)
10 CONTINUE
20 CONTINUE