1 SUBROUTINE MULTDS
(Y
,AA
,X
,MAXA
,NN
,LENAA
)
3 C This subroutine accepts a matrix, AA, in packed skyline storage form and
4 C a vector, x, and returns the product AA*x in y.
8 C AA -- one dimensional real array containing the NN x NN matrix in
9 C packed skyline storage form.
11 C x -- real vector of length NN to be multiplied by AA.
13 C MAXA -- integer array used for specifying information about AA.
14 C MAXA has length NN+1, and stores the indices of the
15 C diagonal elements of the matrix packed in AA. By
16 C convention, MAXA(NN+1) = LENAA + 1 .
18 C NN -- dimension of the matrix packed in AA .
20 C LENAA -- number of elements in AA.
25 C y -- real vector of length NN containing the product AA*x .
29 INTEGER I
,II
,KK
,KL
,KU
,LENAA
,NN
,MAXA
(NN
+1)
30 DOUBLE PRECISION AA
(LENAA
),B
,CC
,X
(NN
),Y
(NN
)
31 IF(LENAA
.GT
.NN
) GO TO 20
44 100 Y
(II
)=Y
(II
)+AA
(KK
)*CC