#include "cblas.h"
#include "cblas_f77.h"
Go to the source code of this file.
|
| void | cblas_sgemm (const CBLAS_LAYOUT layout, const CBLAS_TRANSPOSE TransA, const CBLAS_TRANSPOSE TransB, const CBLAS_INT M, const CBLAS_INT N, const CBLAS_INT K, const float alpha, const float *A, const CBLAS_INT lda, const float *B, const CBLAS_INT ldb, const float beta, float *C, const CBLAS_INT ldc) |
◆ F77_K
◆ F77_lda
◆ F77_ldb
◆ F77_ldc
◆ F77_M
◆ F77_N
◆ F77_TA
◆ F77_TB
◆ cblas_sgemm()
| void cblas_sgemm |
( |
const CBLAS_LAYOUT | layout, |
|
|
const CBLAS_TRANSPOSE | TransA, |
|
|
const CBLAS_TRANSPOSE | TransB, |
|
|
const CBLAS_INT | M, |
|
|
const CBLAS_INT | N, |
|
|
const CBLAS_INT | K, |
|
|
const float | alpha, |
|
|
const float * | A, |
|
|
const CBLAS_INT | lda, |
|
|
const float * | B, |
|
|
const CBLAS_INT | ldb, |
|
|
const float | beta, |
|
|
float * | C, |
|
|
const CBLAS_INT | ldc ) |
Definition at line 12 of file cblas_sgemm.c.
17{
18 char TA, TB;
19#ifdef F77_CHAR
21#else
22 #define F77_TA &TA
23 #define F77_TB &TB
24#endif
25
26#ifdef F77_INT
29#else
30 #define F77_M M
31 #define F77_N N
32 #define F77_K K
33 #define F77_lda lda
34 #define F77_ldb ldb
35 #define F77_ldc ldc
36#endif
37
43 {
47 else
48 {
50 "Illegal TransA setting, %d\n", TransA);
53 return;
54 }
55
59 else
60 {
62 "Illegal TransB setting, %d\n", TransB);
65 return;
66 }
67
68 #ifdef F77_CHAR
71 #endif
72
73 F77_sgemm(
F77_TA,
F77_TB, &
F77_M, &
F77_N, &
F77_K, &
alpha, A, &
F77_lda, B, &
F77_ldb, &beta, C, &
F77_ldc);
75 {
80 else
81 {
83 "Illegal TransA setting, %d\n", TransA);
86 return;
87 }
91 else
92 {
94 "Illegal TransB setting, %d\n", TransB);
97 return;
98 }
99 #ifdef F77_CHAR
102 #endif
103
104 F77_sgemm(
F77_TA,
F77_TB, &
F77_N, &
F77_M, &
F77_K, &
alpha, B, &
F77_ldb, A, &
F77_lda, &beta, C, &
F77_ldc);
105 } else
107 "Illegal layout setting, %d\n", layout);
110}
void cblas_xerbla(CBLAS_INT p, const char *rout, const char *form,...)