ztbsv - solve one of the systems of equations A*x = b, or A'*x = b, or conjg( A' )*x = b
SUBROUTINE ZTBSV( 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 ZTBSV_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 TBSV( 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 TBSV_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
#include <sunperf.h>
void ztbsv(char uplo, char transa, char diag, int n, int ndiag, doublecomplex *a, int lda, doublecomplex *y, int incy);
void ztbsv_64(char uplo, char transa, char diag, long n, long ndiag, doublecomplex *a, long lda, doublecomplex *y, long incy);
ztbsv solves one of the systems of equations A*x = b, or A'*x = b, or conjg( A' )*x = b where b and x are n element vectors and A is an n by n unit, or non-unit, upper or lower triangular band matrix, with ( ndiag + 1 ) diagonals.
No test for singularity or near-singularity is included in this routine. Such tests must be performed before calling this routine.
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' A*x = b.
TRANSA = 'T' or 't' A'*x = b.
TRANSA = 'C' or 'c' conjg( A' )*x = b.
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 M = NDIAG + 1 - J DO 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 ( ndiag + 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 ndiag by ndiag 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 M = 1 - J DO 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.