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

◆ F77_ctrmv()

void F77_ctrmv ( CBLAS_INT * layout,
char * uplow,
char * transp,
char * diagn,
CBLAS_INT * n,
CBLAS_TEST_COMPLEX * a,
CBLAS_INT * lda,
CBLAS_TEST_COMPLEX * x,
CBLAS_INT * incx )

Definition at line 568 of file c_cblas2.c.

574 {
576 CBLAS_INT i,j,LDA;
577 CBLAS_TRANSPOSE trans;
578 CBLAS_UPLO uplo;
579 CBLAS_DIAG diag;
580
581 get_transpose_type(transp,&trans);
582 get_uplo_type(uplow,&uplo);
583 get_diag_type(diagn,&diag);
584
585 if (*layout == TEST_ROW_MJR) {
586 LDA=*n+1;
587 A=(CBLAS_TEST_COMPLEX*)malloc((*n)*LDA*sizeof(CBLAS_TEST_COMPLEX));
588 for( i=0; i<*n; i++ )
589 for( j=0; j<*n; j++ ) {
590 A[ LDA*i+j ].real=a[ (*lda)*j+i ].real;
591 A[ LDA*i+j ].imag=a[ (*lda)*j+i ].imag;
592 }
593 cblas_ctrmv(CblasRowMajor, uplo, trans, diag, *n, A, LDA, x, *incx);
594 free(A);
595 }
596 else if (*layout == TEST_COL_MJR)
597 cblas_ctrmv(CblasColMajor, uplo, trans, diag, *n, a, *lda, x, *incx);
598 else
599 cblas_ctrmv(UNDEFINED, uplo, trans, diag, *n, a, *lda, x, *incx);
600}
CBLAS_UPLO
Definition cblas.h:41
void cblas_ctrmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const void *A, const CBLAS_INT lda, void *X, const CBLAS_INT incX)
Definition cblas_ctrmv.c:10
CBLAS_TRANSPOSE
Definition cblas.h:40
@ 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: