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

◆ F77_dtrsv()

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

Definition at line 99 of file c_dblas2.c.

104 {
105 double *A;
106 CBLAS_INT i,j,LDA;
107 CBLAS_TRANSPOSE trans;
108 CBLAS_UPLO uplo;
109 CBLAS_DIAG diag;
110
111 get_transpose_type(transp,&trans);
112 get_uplo_type(uplow,&uplo);
113 get_diag_type(diagn,&diag);
114
115 if (*layout == TEST_ROW_MJR) {
116 LDA = *n+1;
117 A = ( double* )malloc( (*n)*LDA*sizeof( double ) );
118 for( i=0; i<*n; i++ )
119 for( j=0; j<*n; j++ )
120 A[ LDA*i+j ]=a[ (*lda)*j+i ];
121 cblas_dtrsv(CblasRowMajor, uplo, trans, diag, *n, A, LDA, x, *incx );
122 free(A);
123 }
124 else
125 cblas_dtrsv(CblasColMajor, uplo, trans, diag, *n, a, *lda, x, *incx );
126}
CBLAS_UPLO
Definition cblas.h:41
CBLAS_TRANSPOSE
Definition cblas.h:40
void cblas_dtrsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const CBLAS_INT N, const double *A, const CBLAS_INT lda, double *X, const CBLAS_INT incX)
Definition cblas_dtrsv.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
void get_diag_type(char *type, CBLAS_DIAG *diag)
Definition auxiliary.c:25
#define TEST_ROW_MJR
Definition cblas_test.h:21
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: