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

◆ F77_strsv()

void F77_strsv ( 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 91 of file c_sblas2.c.

92 {
93 float *A;
94 CBLAS_INT i,j,LDA;
95 CBLAS_TRANSPOSE trans;
96 CBLAS_UPLO uplo;
97 CBLAS_DIAG diag;
98
99 get_transpose_type(transp,&trans);
100 get_uplo_type(uplow,&uplo);
101 get_diag_type(diagn,&diag);
102
103 if (*layout == TEST_ROW_MJR) {
104 LDA = *n+1;
105 A = ( float* )malloc( (*n)*LDA*sizeof( float ) );
106 for( i=0; i<*n; i++ )
107 for( j=0; j<*n; j++ )
108 A[ LDA*i+j ]=a[ (*lda)*j+i ];
109 cblas_strsv(CblasRowMajor, uplo, trans, diag, *n, A, LDA, x, *incx );
110 free(A);
111 }
112 else
113 cblas_strsv(CblasColMajor, uplo, trans, diag, *n, a, *lda, x, *incx );
114}
CBLAS_UPLO
Definition cblas.h:41
void cblas_strsv(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_strsv.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
void get_diag_type(char *type, CBLAS_DIAG *diag)
Definition auxiliary.c:25
#define TEST_ROW_MJR
Definition cblas_test.h:12
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: