LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ F77_ztbsv()

void F77_ztbsv ( CBLAS_INT * layout,
char * uplow,
char * transp,
char * diagn,
CBLAS_INT * n,
CBLAS_INT * k,
CBLAS_TEST_ZOMPLEX * a,
CBLAS_INT * lda,
CBLAS_TEST_ZOMPLEX * x,
CBLAS_INT * incx )

Definition at line 382 of file c_zblas2.c.

388 {
389
391 CBLAS_INT irow, jcol, i, j, LDA;
392 CBLAS_TRANSPOSE trans;
393 CBLAS_UPLO uplo;
394 CBLAS_DIAG diag;
395
396 get_transpose_type(transp,&trans);
397 get_uplo_type(uplow,&uplo);
398 get_diag_type(diagn,&diag);
399
400 if (*layout == TEST_ROW_MJR) {
401 if (uplo != CblasUpper && uplo != CblasLower )
402 cblas_ztbsv(CblasRowMajor, UNDEFINED, trans, diag, *n, *k, a, *lda, x,
403 *incx);
404 else {
405 LDA = *k+2;
406 A=(CBLAS_TEST_ZOMPLEX*)malloc((*n+*k)*LDA*sizeof(CBLAS_TEST_ZOMPLEX ));
407 if (uplo == CblasUpper) {
408 for( i=0; i<*k; i++ ){
409 irow=*k-i;
410 jcol=(*k)-i;
411 for( j=jcol; j<*n; j++ ) {
412 A[ LDA*(j-jcol)+irow ].real=a[ (*lda)*j+i ].real;
413 A[ LDA*(j-jcol)+irow ].imag=a[ (*lda)*j+i ].imag;
414 }
415 }
416 i=*k;
417 irow=*k-i;
418 for( j=0; j<*n; j++ ) {
419 A[ LDA*j+irow ].real=a[ (*lda)*j+i ].real;
420 A[ LDA*j+irow ].imag=a[ (*lda)*j+i ].imag;
421 }
422 }
423 else {
424 i=0;
425 irow=*k-i;
426 for( j=0; j<*n; j++ ) {
427 A[ LDA*j+irow ].real=a[ (*lda)*j+i ].real;
428 A[ LDA*j+irow ].imag=a[ (*lda)*j+i ].imag;
429 }
430 for( i=1; i<*k+1; i++ ){
431 irow=*k-i;
432 jcol=i;
433 for( j=jcol; j<(*n+*k); j++ ) {
434 A[ LDA*j+irow ].real=a[ (*lda)*(j-jcol)+i ].real;
435 A[ LDA*j+irow ].imag=a[ (*lda)*(j-jcol)+i ].imag;
436 }
437 }
438 }
439 cblas_ztbsv(CblasRowMajor, uplo, trans, diag, *n, *k, A, LDA,
440 x, *incx);
441 free(A);
442 }
443 }
444 else if (*layout == TEST_COL_MJR)
445 cblas_ztbsv(CblasColMajor, uplo, trans, diag, *n, *k, a, *lda, x, *incx);
446 else
447 cblas_ztbsv(UNDEFINED, uplo, trans, diag, *n, *k, a, *lda, x, *incx);
448}
CBLAS_UPLO
Definition cblas.h:41
@ CblasLower
Definition cblas.h:41
@ CblasUpper
Definition cblas.h:41
CBLAS_TRANSPOSE
Definition cblas.h:40
void cblas_ztbsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const CBLAS_INT K, const void *A, const CBLAS_INT lda, void *X, const CBLAS_INT incX)
Definition cblas_ztbsv.c:10
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
CBLAS_DIAG
Definition cblas.h:42
#define CBLAS_INT
Definition cblas.h:24
#define UNDEFINED
Definition cblas_test.h:28
void get_diag_type(char *type, CBLAS_DIAG *diag)
Definition auxiliary.c:25
#define TEST_ROW_MJR
Definition cblas_test.h:21
#define TEST_COL_MJR
Definition cblas_test.h:25
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition auxiliary.c:18
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
Definition auxiliary.c:8
Here is the call graph for this function: