146 SUBROUTINE dtrmv(UPLO,TRANS,DIAG,N,A,LDA,X,INCX)
154 CHARACTER DIAG,TRANS,UPLO
157 DOUBLE PRECISION A(LDA,*),X(*)
163 DOUBLE PRECISION ZERO
164 parameter(zero=0.0d+0)
167 DOUBLE PRECISION TEMP
168 INTEGER I,INFO,IX,J,JX,KX
185 IF (.NOT.lsame(uplo,
'U') .AND. .NOT.lsame(uplo,
'L'))
THEN
187 ELSE IF (.NOT.lsame(trans,
'N') .AND.
188 + .NOT.lsame(trans,
'T') .AND.
189 + .NOT.lsame(trans,
'C'))
THEN
191 ELSE IF (.NOT.lsame(diag,
'U') .AND.
192 + .NOT.lsame(diag,
'N'))
THEN
194 ELSE IF (n.LT.0)
THEN
196 ELSE IF (lda.LT.max(1,n))
THEN
198 ELSE IF (incx.EQ.0)
THEN
202 CALL xerbla(
'DTRMV ',info)
210 nounit = lsame(diag,
'N')
217 ELSE IF (incx.NE.1)
THEN
224 IF (lsame(trans,
'N'))
THEN
228 IF (lsame(uplo,
'U'))
THEN
231 IF (x(j).NE.zero)
THEN
234 x(i) = x(i) + temp*a(i,j)
236 IF (nounit) x(j) = x(j)*a(j,j)
242 IF (x(jx).NE.zero)
THEN
246 x(ix) = x(ix) + temp*a(i,j)
249 IF (nounit) x(jx) = x(jx)*a(j,j)
257 IF (x(j).NE.zero)
THEN
260 x(i) = x(i) + temp*a(i,j)
262 IF (nounit) x(j) = x(j)*a(j,j)
269 IF (x(jx).NE.zero)
THEN
273 x(ix) = x(ix) + temp*a(i,j)
276 IF (nounit) x(jx) = x(jx)*a(j,j)
286 IF (lsame(uplo,
'U'))
THEN
290 IF (nounit) temp = temp*a(j,j)
292 temp = temp + a(i,j)*x(i)
301 IF (nounit) temp = temp*a(j,j)
302 DO 110 i = j - 1,1,-1
304 temp = temp + a(i,j)*x(ix)
314 IF (nounit) temp = temp*a(j,j)
316 temp = temp + a(i,j)*x(i)
325 IF (nounit) temp = temp*a(j,j)
328 temp = temp + a(i,j)*x(ix)
subroutine xerbla(srname, info)
subroutine dtrmv(uplo, trans, diag, n, a, lda, x, incx)
DTRMV