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

◆ F77_strmv()

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

Definition at line 67 of file c_sblas2.c.

72 {
73 float *A;
74 CBLAS_INT i,j,LDA;
75 CBLAS_TRANSPOSE trans;
76 CBLAS_UPLO uplo;
77 CBLAS_DIAG diag;
78
79 get_transpose_type(transp,&trans);
80 get_uplo_type(uplow,&uplo);
81 get_diag_type(diagn,&diag);
82
83 if (*layout == TEST_ROW_MJR) {
84 LDA = *n+1;
85 A = ( float* )malloc( (*n)*LDA*sizeof( float ) );
86 for( i=0; i<*n; i++ )
87 for( j=0; j<*n; j++ )
88 A[ LDA*i+j ]=a[ (*lda)*j+i ];
89 cblas_strmv(CblasRowMajor, uplo, trans, diag, *n, A, LDA, x, *incx);
90 free(A);
91 }
92 else if (*layout == TEST_COL_MJR)
93 cblas_strmv(CblasColMajor, uplo, trans, diag, *n, a, *lda, x, *incx);
94 else {
95 cblas_strmv(UNDEFINED, uplo, trans, diag, *n, a, *lda, x, *incx);
96 }
97}
CBLAS_UPLO
Definition cblas.h:41
CBLAS_TRANSPOSE
Definition cblas.h:40
void cblas_strmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const float *A, const CBLAS_INT lda, float *X, const CBLAS_INT incX)
Definition cblas_strmv.c:11
@ 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: