LAPACK  3.9.0
LAPACK: Linear Algebra PACKage

◆ F77_dtrsv()

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

Definition at line 91 of file c_dblas2.c.

92  {
93  double *A;
94  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 = ( double* )malloc( (*n)*LDA*sizeof( double ) );
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_dtrsv(CblasRowMajor, uplo, trans, diag, *n, A, LDA, x, *incx );
110  free(A);
111  }
112  else
113  cblas_dtrsv(CblasColMajor, uplo, trans, diag, *n, a, *lda, x, *incx );
114 }
Here is the call graph for this function:
CBLAS_TRANSPOSE
CBLAS_TRANSPOSE
Definition: cblas.h:20
CBLAS_DIAG
CBLAS_DIAG
Definition: cblas.h:22
LDA
#define LDA
Definition: example_user.c:12
CblasColMajor
Definition: cblas.h:19
CblasRowMajor
Definition: cblas.h:19
get_uplo_type
void get_uplo_type(char *type, CBLAS_UPLO *uplo)
Definition: auxiliary.c:18
TEST_ROW_MJR
#define TEST_ROW_MJR
Definition: cblas_test.h:12
CBLAS_UPLO
CBLAS_UPLO
Definition: cblas.h:21
get_diag_type
void get_diag_type(char *type, CBLAS_DIAG *diag)
Definition: auxiliary.c:25
cblas_dtrsv
void cblas_dtrsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag, const int N, const double *A, const int lda, double *X, const int incX)
Definition: cblas_dtrsv.c:10
get_transpose_type
void get_transpose_type(char *type, CBLAS_TRANSPOSE *trans)
Definition: auxiliary.c:8