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

◆ cblas_sgemv()

void API_SUFFIX() cblas_sgemv ( const CBLAS_LAYOUT  layout,
const CBLAS_TRANSPOSE  TransA,
const CBLAS_INT  M,
const CBLAS_INT  N,
const float  alpha,
const float *  A,
const CBLAS_INT  lda,
const float *  X,
const CBLAS_INT  incX,
const float  beta,
float *  Y,
const CBLAS_INT  incY 
)

Definition at line 11 of file cblas_sgemv.c.

16{
17 char TA;
18#ifdef F77_CHAR
19 F77_CHAR F77_TA;
20#else
21 #define F77_TA &TA
22#endif
23#ifdef F77_INT
24 F77_INT F77_M=M, F77_N=N, F77_lda=lda, F77_incX=incX, F77_incY=incY;
25#else
26 #define F77_M M
27 #define F77_N N
28 #define F77_lda lda
29 #define F77_incX incX
30 #define F77_incY incY
31#endif
32
33 extern int CBLAS_CallFromC;
34 extern int RowMajorStrg;
35 RowMajorStrg = 0;
36
38 if (layout == CblasColMajor)
39 {
40 if (TransA == CblasNoTrans) TA = 'N';
41 else if (TransA == CblasTrans) TA = 'T';
42 else if (TransA == CblasConjTrans) TA = 'C';
43 else
44 {
45 API_SUFFIX(cblas_xerbla)(2, "cblas_sgemv","Illegal TransA setting, %d\n", TransA);
47 RowMajorStrg = 0;
48 }
49 #ifdef F77_CHAR
50 F77_TA = C2F_CHAR(&TA);
51 #endif
52 F77_sgemv(F77_TA, &F77_M, &F77_N, &alpha, A, &F77_lda, X, &F77_incX,
53 &beta, Y, &F77_incY);
54 }
55 else if (layout == CblasRowMajor)
56 {
57 RowMajorStrg = 1;
58 if (TransA == CblasNoTrans) TA = 'T';
59 else if (TransA == CblasTrans) TA = 'N';
60 else if (TransA == CblasConjTrans) TA = 'N';
61 else
62 {
63 API_SUFFIX(cblas_xerbla)(2, "cblas_sgemv", "Illegal TransA setting, %d\n", TransA);
65 RowMajorStrg = 0;
66 return;
67 }
68 #ifdef F77_CHAR
69 F77_TA = C2F_CHAR(&TA);
70 #endif
71 F77_sgemv(F77_TA, &F77_N, &F77_M, &alpha, A, &F77_lda, X,
72 &F77_incX, &beta, Y, &F77_incY);
73 }
74 else API_SUFFIX(cblas_xerbla)(1, "cblas_sgemv", "Illegal layout setting, %d\n", layout);
76 RowMajorStrg = 0;
77 return;
78}
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
#define API_SUFFIX(a)
Definition cblas.h:57
#define F77_INT
#define F77_sgemv(...)
Definition cblas_f77.h:311
int CBLAS_CallFromC
int RowMajorStrg
#define F77_incX
#define F77_incY
#define F77_TA
#define F77_N
#define F77_lda
#define F77_M
Here is the call graph for this function:
Here is the caller graph for this function: