F_STRMV/F_DTRMV/F_CTRMV/F_ZTRMV

Triangular matrix-vector multiply

Name

F_STRMV/F_DTRMV/F_CTRMV/F_ZTRMV

 

Triangular matrix-vector multiply

Purpose

F_xTRMV multiplies a vector x by a general triangular matrix (T), its

 

transpose (TT), or its conjugate transpose (T*), and copies the resulting vector

 

to the vector operand x. If n is less than or equal to zero, this routine returns

 

immediately.

 

 

 

x ← αTx

 

 

x ← αTT x

 

 

x ← αTx

 

Refer to “STRMV/DTRMV/CTRMV/ZTRMV” on page 323 for a description of

 

the equivalent HP MLIB legacy BLAS subprograms.

Matrix

For these subprograms, you supply A in a two-dimensional array large enough

Storage

to hold a square matrix. The other triangle of the array is not referenced. If A

 

has an unstored unit diagonal (see input argument DIAG), then the diagonal

 

elements of the array also is not referenced.

Usage

VECLIB

 

 

INTEGER*4

DIAG, INCX, LDA, N, TRANS, UPLO

 

REAL*4

ALPHA

 

REAL*4

A( LDA, * ), X( * )

 

SUBROUTINE F_STRMV (UPLO, TRANS, DIAG, N, ALPHA, A, LDA, X,

 

INCX)

 

 

INTEGER*4

DIAG, INCX, LDA, N, TRANS, UPLO

 

REAL*8

ALPHA

 

REAL*8

A( LDA, * ), X( * )

 

SUBROUTINE F_DTRMV (UPLO, TRANS, DIAG, N, ALPHA, A, LDA, X,

 

INCX)

 

 

INTEGER*4

DIAG, INCX, LDA, N, TRANS, UPLO

 

COMPLEX*8

ALPHA

 

COMPLEX*8

A( LDA, * ), X( * )

 

SUBROUTINE F_CTRMV (UPLO, TRANS, DIAG, N, ALPHA, A, LDA, X,

 

INCX)

 

408HP MLIB User’s Guide