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

◆ cblas_dsbmv()

void cblas_dsbmv ( CBLAS_LAYOUT  layout,
CBLAS_UPLO  Uplo,
const CBLAS_INT  N,
const CBLAS_INT  K,
const double  alpha,
const double *  A,
const CBLAS_INT  lda,
const double *  X,
const CBLAS_INT  incX,
const double  beta,
double *  Y,
const CBLAS_INT  incY 
)

Definition at line 12 of file cblas_dsbmv.c.

17{
18 char UL;
19#ifdef F77_CHAR
20 F77_CHAR F77_UL;
21#else
22 #define F77_UL &UL
23#endif
24#ifdef F77_INT
25 F77_INT F77_N=N, F77_K=K, F77_lda=lda, F77_incX=incX, F77_incY=incY;
26#else
27 #define F77_N N
28 #define F77_K K
29 #define F77_lda lda
30 #define F77_incX incX
31 #define F77_incY incY
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_dsbmv","Illegal Uplo setting, %d\n",Uplo );
46 RowMajorStrg = 0;
47 return;
48 }
49 #ifdef F77_CHAR
50 F77_UL = C2F_CHAR(&UL);
51 #endif
52 F77_dsbmv(F77_UL, &F77_N, &F77_K, &alpha, A, &F77_lda, X,
53 &F77_incX, &beta, Y, &F77_incY);
54 }
55 else if (layout == CblasRowMajor)
56 {
57 RowMajorStrg = 1;
58 if (Uplo == CblasUpper) UL = 'L';
59 else if (Uplo == CblasLower) UL = 'U';
60 else
61 {
62 API_SUFFIX(cblas_xerbla)(2, "cblas_dsbmv","Illegal Uplo setting, %d\n", Uplo);
64 RowMajorStrg = 0;
65 return;
66 }
67 #ifdef F77_CHAR
68 F77_UL = C2F_CHAR(&UL);
69 #endif
70 F77_dsbmv(F77_UL, &F77_N, &F77_K, &alpha,
71 A ,&F77_lda, X,&F77_incX, &beta, Y, &F77_incY);
72 }
73 else API_SUFFIX(cblas_xerbla)(1, "cblas_dsbmv", "Illegal layout setting, %d\n", layout);
75 RowMajorStrg = 0;
76 return;
77}
@ CblasLower
Definition cblas.h:41
@ CblasUpper
Definition cblas.h:41
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)
@ CblasColMajor
Definition cblas.h:39
@ CblasRowMajor
Definition cblas.h:39
#define API_SUFFIX(a)
Definition cblas.h:57
#define F77_incX
#define F77_incY
#define F77_K
#define F77_N
#define F77_lda
#define F77_UL
#define F77_INT
#define F77_dsbmv(...)
Definition cblas_f77.h:332
int CBLAS_CallFromC
int RowMajorStrg
Here is the call graph for this function:
Here is the caller graph for this function: