SUBROUTINE ZTBMV( UPLO, TRANSA, DIAG, N, NDIAG, A, LDA, Y, INCY) CHARACTER * 1 UPLO, TRANSA, DIAG DOUBLE COMPLEX A(LDA,*), Y(*) INTEGER N, NDIAG, LDA, INCY SUBROUTINE ZTBMV_64( UPLO, TRANSA, DIAG, N, NDIAG, A, LDA, Y, INCY) CHARACTER * 1 UPLO, TRANSA, DIAG DOUBLE COMPLEX A(LDA,*), Y(*) INTEGER*8 N, NDIAG, LDA, INCY
SUBROUTINE TBMV( UPLO, [TRANSA], DIAG, [N], NDIAG, A, [LDA], Y, * [INCY]) CHARACTER(LEN=1) :: UPLO, TRANSA, DIAG COMPLEX(8), DIMENSION(:) :: Y COMPLEX(8), DIMENSION(:,:) :: A INTEGER :: N, NDIAG, LDA, INCY SUBROUTINE TBMV_64( UPLO, [TRANSA], DIAG, [N], NDIAG, A, [LDA], Y, * [INCY]) CHARACTER(LEN=1) :: UPLO, TRANSA, DIAG COMPLEX(8), DIMENSION(:) :: Y COMPLEX(8), DIMENSION(:,:) :: A INTEGER(8) :: N, NDIAG, LDA, INCY
void ztbmv(char uplo, char transa, char diag, int n, int ndiag, doublecomplex *a, int lda, doublecomplex *y, int incy);
void ztbmv_64(char uplo, char transa, char diag, long n, long ndiag, doublecomplex *a, long lda, doublecomplex *y, long incy);
UPLO = 'U' or 'u' A is an upper triangular matrix.
UPLO = 'L' or 'l' A is a lower triangular matrix.
Unchanged on exit.
TRANSA = 'N' or 'n' x := A*x.
TRANSA = 'T' or 't' x := A'*x.
TRANSA = 'C' or 'c' x := conjg( A' )*x.
Unchanged on exit.
DIAG = 'U' or 'u' A is assumed to be unit triangular.
DIAG = 'N' or 'n' A is not assumed to be unit triangular.
Unchanged on exit.
DO 20, J = 1, N = NDIAG + 1 - J O 10, I = MAX( 1, J - NDIAG ), J A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
Before entry with UPLO = 'L' or 'l', the leading ( k + 1 ) by n part of the array A must contain the lower triangular band part of the matrix of coefficients, supplied column by column, with the leading diagonal of the matrix in row 1 of the array, the first sub-diagonal starting at position 1 in row 2, and so on. The bottom right k by k triangle of the array A is not referenced. The following program segment will transfer a lower triangular band matrix from conventional full matrix storage to band storage:
DO 20, J = 1, N = 1 - J O 10, I = J, MIN( N, J + NDIAG ) A( M + I, J ) = matrix( I, J )
10 CONTINUE
20 CONTINUE
Note that when DIAG = 'U' or 'u' the elements of the array A corresponding to the diagonal elements of the matrix are not referenced, but are assumed to be unity. Unchanged on exit.