185 SUBROUTINE stbmv(UPLO,TRANS,DIAG,N,K,A,LDA,X,INCX)
193 CHARACTER DIAG,TRANS,UPLO
203 parameter(zero=0.0e+0)
207 INTEGER I,INFO,IX,J,JX,KPLUS1,KX,L
224 IF (.NOT.lsame(uplo,
'U') .AND. .NOT.lsame(uplo,
'L'))
THEN
226 ELSE IF (.NOT.lsame(trans,
'N') .AND.
227 + .NOT.lsame(trans,
'T') .AND.
228 + .NOT.lsame(trans,
'C'))
THEN
230 ELSE IF (.NOT.lsame(diag,
'U') .AND.
231 + .NOT.lsame(diag,
'N'))
THEN
233 ELSE IF (n.LT.0)
THEN
235 ELSE IF (k.LT.0)
THEN
237 ELSE IF (lda.LT. (k+1))
THEN
239 ELSE IF (incx.EQ.0)
THEN
243 CALL xerbla(
'STBMV ',info)
251 nounit = lsame(diag,
'N')
258 ELSE IF (incx.NE.1)
THEN
265 IF (lsame(trans,
'N'))
THEN
269 IF (lsame(uplo,
'U'))
THEN
273 IF (x(j).NE.zero)
THEN
276 DO 10 i = max(1,j-k),j - 1
277 x(i) = x(i) + temp*a(l+i,j)
279 IF (nounit) x(j) = x(j)*a(kplus1,j)
285 IF (x(jx).NE.zero)
THEN
289 DO 30 i = max(1,j-k),j - 1
290 x(ix) = x(ix) + temp*a(l+i,j)
293 IF (nounit) x(jx) = x(jx)*a(kplus1,j)
296 IF (j.GT.k) kx = kx + incx
302 IF (x(j).NE.zero)
THEN
305 DO 50 i = min(n,j+k),j + 1,-1
306 x(i) = x(i) + temp*a(l+i,j)
308 IF (nounit) x(j) = x(j)*a(1,j)
315 IF (x(jx).NE.zero)
THEN
319 DO 70 i = min(n,j+k),j + 1,-1
320 x(ix) = x(ix) + temp*a(l+i,j)
323 IF (nounit) x(jx) = x(jx)*a(1,j)
326 IF ((n-j).GE.k) kx = kx - incx
334 IF (lsame(uplo,
'U'))
THEN
340 IF (nounit) temp = temp*a(kplus1,j)
341 DO 90 i = j - 1,max(1,j-k),-1
342 temp = temp + a(l+i,j)*x(i)
354 IF (nounit) temp = temp*a(kplus1,j)
355 DO 110 i = j - 1,max(1,j-k),-1
356 temp = temp + a(l+i,j)*x(ix)
368 IF (nounit) temp = temp*a(1,j)
369 DO 130 i = j + 1,min(n,j+k)
370 temp = temp + a(l+i,j)*x(i)
381 IF (nounit) temp = temp*a(1,j)
382 DO 150 i = j + 1,min(n,j+k)
383 temp = temp + a(l+i,j)*x(ix)
subroutine xerbla(srname, info)
subroutine stbmv(uplo, trans, diag, n, k, a, lda, x, incx)
STBMV