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

◆ cblas_dtbsv()

void API_SUFFIX() cblas_dtbsv ( const CBLAS_LAYOUT  layout,
const CBLAS_UPLO  Uplo,
const CBLAS_TRANSPOSE  TransA,
const CBLAS_DIAG  Diag,
const CBLAS_INT  N,
const CBLAS_INT  K,
const double *  A,
const CBLAS_INT  lda,
double *  X,
const CBLAS_INT  incX 
)

Definition at line 10 of file cblas_dtbsv.c.

14{
15 char TA;
16 char UL;
17 char DI;
18#ifdef F77_CHAR
19 F77_CHAR F77_TA, F77_UL, F77_DI;
20#else
21 #define F77_TA &TA
22 #define F77_UL &UL
23 #define F77_DI &DI
24#endif
25#ifdef F77_INT
26 F77_INT F77_N=N, F77_lda=lda, F77_K=K, F77_incX=incX;
27#else
28 #define F77_N N
29 #define F77_K K
30 #define F77_lda lda
31 #define F77_incX incX
32#endif
33 extern int CBLAS_CallFromC;
34 extern int RowMajorStrg;
35 RowMajorStrg = 0;
36
38 if (layout == CblasColMajor)
39 {
40 if (Uplo == CblasUpper) UL = 'U';
41 else if (Uplo == CblasLower) UL = 'L';
42 else
43 {
44 API_SUFFIX(cblas_xerbla)(2, "cblas_dtbsv","Illegal Uplo setting, %d\n", Uplo);
46 RowMajorStrg = 0;
47 return;
48 }
49 if (TransA == CblasNoTrans) TA = 'N';
50 else if (TransA == CblasTrans) TA = 'T';
51 else if (TransA == CblasConjTrans) TA = 'C';
52 else
53 {
54 API_SUFFIX(cblas_xerbla)(3, "cblas_dtbsv","Illegal TransA setting, %d\n", TransA);
56 RowMajorStrg = 0;
57 return;
58 }
59 if (Diag == CblasUnit) DI = 'U';
60 else if (Diag == CblasNonUnit) DI = 'N';
61 else
62 {
63 API_SUFFIX(cblas_xerbla)(4, "cblas_dtbsv","Illegal Diag setting, %d\n", Diag);
65 RowMajorStrg = 0;
66 return;
67 }
68 #ifdef F77_CHAR
69 F77_UL = C2F_CHAR(&UL);
70 F77_TA = C2F_CHAR(&TA);
71 F77_DI = C2F_CHAR(&DI);
72 #endif
74 &F77_incX);
75 }
76 else if (layout == CblasRowMajor)
77 {
78 RowMajorStrg = 1;
79 if (Uplo == CblasUpper) UL = 'L';
80 else if (Uplo == CblasLower) UL = 'U';
81 else
82 {
83 API_SUFFIX(cblas_xerbla)(2, "cblas_dtbsv","Illegal Uplo setting, %d\n", Uplo);
85 RowMajorStrg = 0;
86 return;
87 }
88
89 if (TransA == CblasNoTrans) TA = 'T';
90 else if (TransA == CblasTrans) TA = 'N';
91 else if (TransA == CblasConjTrans) TA = 'N';
92 else
93 {
94 API_SUFFIX(cblas_xerbla)(3, "cblas_dtbsv","Illegal TransA setting, %d\n", TransA);
96 RowMajorStrg = 0;
97 return;
98 }
99
100 if (Diag == CblasUnit) DI = 'U';
101 else if (Diag == CblasNonUnit) DI = 'N';
102 else
103 {
104 API_SUFFIX(cblas_xerbla)(4, "cblas_dtbsv","Illegal Diag setting, %d\n", Diag);
105 CBLAS_CallFromC = 0;
106 RowMajorStrg = 0;
107 return;
108 }
109 #ifdef F77_CHAR
110 F77_UL = C2F_CHAR(&UL);
111 F77_TA = C2F_CHAR(&TA);
112 F77_DI = C2F_CHAR(&DI);
113 #endif
114
116 &F77_incX);
117 }
118 else API_SUFFIX(cblas_xerbla)(1, "cblas_dtbsv", "Illegal layout setting, %d\n", layout);
119 CBLAS_CallFromC = 0;
120 RowMajorStrg = 0;
121 return;
122}
@ CblasLower
Definition cblas.h:41
@ CblasUpper
Definition cblas.h:41
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)
@ CblasNoTrans
Definition cblas.h:40
@ CblasTrans
Definition cblas.h:40
@ CblasConjTrans
Definition cblas.h:40
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
@ CblasUnit
Definition cblas.h:42
@ CblasNonUnit
Definition cblas.h:42
#define API_SUFFIX(a)
Definition cblas.h:57
#define F77_DI
#define F77_incX
#define F77_K
#define F77_TA
#define F77_N
#define F77_lda
#define F77_UL
#define F77_INT
#define F77_dtbsv(...)
Definition cblas_f77.h:337
int CBLAS_CallFromC
int RowMajorStrg
Here is the call graph for this function:
Here is the caller graph for this function: