You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

cblas.h 30 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589
  1. #ifndef CBLAS_H
  2. #define CBLAS_H
  3. #include <stddef.h>
  4. #include <stdint.h>
  5. #ifdef __cplusplus
  6. extern "C" { /* Assume C declarations for C++ */
  7. #endif /* __cplusplus */
  8. /*
  9. * Enumerated and derived types
  10. */
  11. #ifdef WeirdNEC
  12. #define CBLAS_INDEX int64_t
  13. #else
  14. #define CBLAS_INDEX int32_t
  15. #endif
  16. typedef enum {CblasRowMajor=101, CblasColMajor=102} CBLAS_LAYOUT;
  17. typedef enum {CblasNoTrans=111, CblasTrans=112, CblasConjTrans=113} CBLAS_TRANSPOSE;
  18. typedef enum {CblasUpper=121, CblasLower=122} CBLAS_UPLO;
  19. typedef enum {CblasNonUnit=131, CblasUnit=132} CBLAS_DIAG;
  20. typedef enum {CblasLeft=141, CblasRight=142} CBLAS_SIDE;
  21. typedef CBLAS_LAYOUT CBLAS_ORDER; /* this for backward compatibility with CBLAS_ORDER */
  22. #include "cblas_mangling.h"
  23. /*
  24. * ===========================================================================
  25. * Prototypes for level 1 BLAS functions (complex are recast as routines)
  26. * ===========================================================================
  27. */
  28. double cblas_dcabs1(const void *z);
  29. float cblas_scabs1(const void *c);
  30. float cblas_sdsdot(const int N, const float alpha, const float *X,
  31. const int incX, const float *Y, const int incY);
  32. double cblas_dsdot(const int N, const float *X, const int incX, const float *Y,
  33. const int incY);
  34. float cblas_sdot(const int N, const float *X, const int incX,
  35. const float *Y, const int incY);
  36. double cblas_ddot(const int N, const double *X, const int incX,
  37. const double *Y, const int incY);
  38. /*
  39. * Functions having prefixes Z and C only
  40. */
  41. void cblas_cdotu_sub(const int N, const void *X, const int incX,
  42. const void *Y, const int incY, void *dotu);
  43. void cblas_cdotc_sub(const int N, const void *X, const int incX,
  44. const void *Y, const int incY, void *dotc);
  45. void cblas_zdotu_sub(const int N, const void *X, const int incX,
  46. const void *Y, const int incY, void *dotu);
  47. void cblas_zdotc_sub(const int N, const void *X, const int incX,
  48. const void *Y, const int incY, void *dotc);
  49. /*
  50. * Functions having prefixes S D SC DZ
  51. */
  52. float cblas_snrm2(const int N, const float *X, const int incX);
  53. float cblas_sasum(const int N, const float *X, const int incX);
  54. double cblas_dnrm2(const int N, const double *X, const int incX);
  55. double cblas_dasum(const int N, const double *X, const int incX);
  56. float cblas_scnrm2(const int N, const void *X, const int incX);
  57. float cblas_scasum(const int N, const void *X, const int incX);
  58. double cblas_dznrm2(const int N, const void *X, const int incX);
  59. double cblas_dzasum(const int N, const void *X, const int incX);
  60. /*
  61. * Functions having standard 4 prefixes (S D C Z)
  62. */
  63. CBLAS_INDEX cblas_isamax(const int N, const float *X, const int incX);
  64. CBLAS_INDEX cblas_idamax(const int N, const double *X, const int incX);
  65. CBLAS_INDEX cblas_icamax(const int N, const void *X, const int incX);
  66. CBLAS_INDEX cblas_izamax(const int N, const void *X, const int incX);
  67. /*
  68. * ===========================================================================
  69. * Prototypes for level 1 BLAS routines
  70. * ===========================================================================
  71. */
  72. /*
  73. * Routines with standard 4 prefixes (s, d, c, z)
  74. */
  75. void cblas_sswap(const int N, float *X, const int incX,
  76. float *Y, const int incY);
  77. void cblas_scopy(const int N, const float *X, const int incX,
  78. float *Y, const int incY);
  79. void cblas_saxpy(const int N, const float alpha, const float *X,
  80. const int incX, float *Y, const int incY);
  81. void cblas_dswap(const int N, double *X, const int incX,
  82. double *Y, const int incY);
  83. void cblas_dcopy(const int N, const double *X, const int incX,
  84. double *Y, const int incY);
  85. void cblas_daxpy(const int N, const double alpha, const double *X,
  86. const int incX, double *Y, const int incY);
  87. void cblas_cswap(const int N, void *X, const int incX,
  88. void *Y, const int incY);
  89. void cblas_ccopy(const int N, const void *X, const int incX,
  90. void *Y, const int incY);
  91. void cblas_caxpy(const int N, const void *alpha, const void *X,
  92. const int incX, void *Y, const int incY);
  93. void cblas_zswap(const int N, void *X, const int incX,
  94. void *Y, const int incY);
  95. void cblas_zcopy(const int N, const void *X, const int incX,
  96. void *Y, const int incY);
  97. void cblas_zaxpy(const int N, const void *alpha, const void *X,
  98. const int incX, void *Y, const int incY);
  99. /*
  100. * Routines with S and D prefix only
  101. */
  102. void cblas_srotg(float *a, float *b, float *c, float *s);
  103. void cblas_srotmg(float *d1, float *d2, float *b1, const float b2, float *P);
  104. void cblas_srot(const int N, float *X, const int incX,
  105. float *Y, const int incY, const float c, const float s);
  106. void cblas_srotm(const int N, float *X, const int incX,
  107. float *Y, const int incY, const float *P);
  108. void cblas_drotg(double *a, double *b, double *c, double *s);
  109. void cblas_drotmg(double *d1, double *d2, double *b1, const double b2, double *P);
  110. void cblas_drot(const int N, double *X, const int incX,
  111. double *Y, const int incY, const double c, const double s);
  112. void cblas_drotm(const int N, double *X, const int incX,
  113. double *Y, const int incY, const double *P);
  114. /*
  115. * Routines with S D C Z CS and ZD prefixes
  116. */
  117. void cblas_sscal(const int N, const float alpha, float *X, const int incX);
  118. void cblas_dscal(const int N, const double alpha, double *X, const int incX);
  119. void cblas_cscal(const int N, const void *alpha, void *X, const int incX);
  120. void cblas_zscal(const int N, const void *alpha, void *X, const int incX);
  121. void cblas_csscal(const int N, const float alpha, void *X, const int incX);
  122. void cblas_zdscal(const int N, const double alpha, void *X, const int incX);
  123. /*
  124. * ===========================================================================
  125. * Prototypes for level 2 BLAS
  126. * ===========================================================================
  127. */
  128. /*
  129. * Routines with standard 4 prefixes (S, D, C, Z)
  130. */
  131. void cblas_sgemv(const CBLAS_LAYOUT layout,
  132. const CBLAS_TRANSPOSE TransA, const int M, const int N,
  133. const float alpha, const float *A, const int lda,
  134. const float *X, const int incX, const float beta,
  135. float *Y, const int incY);
  136. void cblas_sgbmv(CBLAS_LAYOUT layout,
  137. CBLAS_TRANSPOSE TransA, const int M, const int N,
  138. const int KL, const int KU, const float alpha,
  139. const float *A, const int lda, const float *X,
  140. const int incX, const float beta, float *Y, const int incY);
  141. void cblas_strmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  142. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  143. const int N, const float *A, const int lda,
  144. float *X, const int incX);
  145. void cblas_stbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  146. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  147. const int N, const int K, const float *A, const int lda,
  148. float *X, const int incX);
  149. void cblas_stpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  150. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  151. const int N, const float *Ap, float *X, const int incX);
  152. void cblas_strsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  153. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  154. const int N, const float *A, const int lda, float *X,
  155. const int incX);
  156. void cblas_stbsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  157. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  158. const int N, const int K, const float *A, const int lda,
  159. float *X, const int incX);
  160. void cblas_stpsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  161. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  162. const int N, const float *Ap, float *X, const int incX);
  163. void cblas_dgemv(CBLAS_LAYOUT layout,
  164. CBLAS_TRANSPOSE TransA, const int M, const int N,
  165. const double alpha, const double *A, const int lda,
  166. const double *X, const int incX, const double beta,
  167. double *Y, const int incY);
  168. void cblas_dgbmv(CBLAS_LAYOUT layout,
  169. CBLAS_TRANSPOSE TransA, const int M, const int N,
  170. const int KL, const int KU, const double alpha,
  171. const double *A, const int lda, const double *X,
  172. const int incX, const double beta, double *Y, const int incY);
  173. void cblas_dtrmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  174. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  175. const int N, const double *A, const int lda,
  176. double *X, const int incX);
  177. void cblas_dtbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  178. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  179. const int N, const int K, const double *A, const int lda,
  180. double *X, const int incX);
  181. void cblas_dtpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  182. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  183. const int N, const double *Ap, double *X, const int incX);
  184. void cblas_dtrsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  185. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  186. const int N, const double *A, const int lda, double *X,
  187. const int incX);
  188. void cblas_dtbsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  189. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  190. const int N, const int K, const double *A, const int lda,
  191. double *X, const int incX);
  192. void cblas_dtpsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  193. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  194. const int N, const double *Ap, double *X, const int incX);
  195. void cblas_cgemv(CBLAS_LAYOUT layout,
  196. CBLAS_TRANSPOSE TransA, const int M, const int N,
  197. const void *alpha, const void *A, const int lda,
  198. const void *X, const int incX, const void *beta,
  199. void *Y, const int incY);
  200. void cblas_cgbmv(CBLAS_LAYOUT layout,
  201. CBLAS_TRANSPOSE TransA, const int M, const int N,
  202. const int KL, const int KU, const void *alpha,
  203. const void *A, const int lda, const void *X,
  204. const int incX, const void *beta, void *Y, const int incY);
  205. void cblas_ctrmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  206. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  207. const int N, const void *A, const int lda,
  208. void *X, const int incX);
  209. void cblas_ctbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  210. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  211. const int N, const int K, const void *A, const int lda,
  212. void *X, const int incX);
  213. void cblas_ctpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  214. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  215. const int N, const void *Ap, void *X, const int incX);
  216. void cblas_ctrsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  217. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  218. const int N, const void *A, const int lda, void *X,
  219. const int incX);
  220. void cblas_ctbsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  221. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  222. const int N, const int K, const void *A, const int lda,
  223. void *X, const int incX);
  224. void cblas_ctpsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  225. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  226. const int N, const void *Ap, void *X, const int incX);
  227. void cblas_zgemv(CBLAS_LAYOUT layout,
  228. CBLAS_TRANSPOSE TransA, const int M, const int N,
  229. const void *alpha, const void *A, const int lda,
  230. const void *X, const int incX, const void *beta,
  231. void *Y, const int incY);
  232. void cblas_zgbmv(CBLAS_LAYOUT layout,
  233. CBLAS_TRANSPOSE TransA, const int M, const int N,
  234. const int KL, const int KU, const void *alpha,
  235. const void *A, const int lda, const void *X,
  236. const int incX, const void *beta, void *Y, const int incY);
  237. void cblas_ztrmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  238. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  239. const int N, const void *A, const int lda,
  240. void *X, const int incX);
  241. void cblas_ztbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  242. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  243. const int N, const int K, const void *A, const int lda,
  244. void *X, const int incX);
  245. void cblas_ztpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  246. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  247. const int N, const void *Ap, void *X, const int incX);
  248. void cblas_ztrsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  249. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  250. const int N, const void *A, const int lda, void *X,
  251. const int incX);
  252. void cblas_ztbsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  253. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  254. const int N, const int K, const void *A, const int lda,
  255. void *X, const int incX);
  256. void cblas_ztpsv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  257. CBLAS_TRANSPOSE TransA, CBLAS_DIAG Diag,
  258. const int N, const void *Ap, void *X, const int incX);
  259. /*
  260. * Routines with S and D prefixes only
  261. */
  262. void cblas_ssymv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  263. const int N, const float alpha, const float *A,
  264. const int lda, const float *X, const int incX,
  265. const float beta, float *Y, const int incY);
  266. void cblas_ssbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  267. const int N, const int K, const float alpha, const float *A,
  268. const int lda, const float *X, const int incX,
  269. const float beta, float *Y, const int incY);
  270. void cblas_sspmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  271. const int N, const float alpha, const float *Ap,
  272. const float *X, const int incX,
  273. const float beta, float *Y, const int incY);
  274. void cblas_sger(CBLAS_LAYOUT layout, const int M, const int N,
  275. const float alpha, const float *X, const int incX,
  276. const float *Y, const int incY, float *A, const int lda);
  277. void cblas_ssyr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  278. const int N, const float alpha, const float *X,
  279. const int incX, float *A, const int lda);
  280. void cblas_sspr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  281. const int N, const float alpha, const float *X,
  282. const int incX, float *Ap);
  283. void cblas_ssyr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  284. const int N, const float alpha, const float *X,
  285. const int incX, const float *Y, const int incY, float *A,
  286. const int lda);
  287. void cblas_sspr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  288. const int N, const float alpha, const float *X,
  289. const int incX, const float *Y, const int incY, float *A);
  290. void cblas_dsymv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  291. const int N, const double alpha, const double *A,
  292. const int lda, const double *X, const int incX,
  293. const double beta, double *Y, const int incY);
  294. void cblas_dsbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  295. const int N, const int K, const double alpha, const double *A,
  296. const int lda, const double *X, const int incX,
  297. const double beta, double *Y, const int incY);
  298. void cblas_dspmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  299. const int N, const double alpha, const double *Ap,
  300. const double *X, const int incX,
  301. const double beta, double *Y, const int incY);
  302. void cblas_dger(CBLAS_LAYOUT layout, const int M, const int N,
  303. const double alpha, const double *X, const int incX,
  304. const double *Y, const int incY, double *A, const int lda);
  305. void cblas_dsyr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  306. const int N, const double alpha, const double *X,
  307. const int incX, double *A, const int lda);
  308. void cblas_dspr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  309. const int N, const double alpha, const double *X,
  310. const int incX, double *Ap);
  311. void cblas_dsyr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  312. const int N, const double alpha, const double *X,
  313. const int incX, const double *Y, const int incY, double *A,
  314. const int lda);
  315. void cblas_dspr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  316. const int N, const double alpha, const double *X,
  317. const int incX, const double *Y, const int incY, double *A);
  318. /*
  319. * Routines with C and Z prefixes only
  320. */
  321. void cblas_chemv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  322. const int N, const void *alpha, const void *A,
  323. const int lda, const void *X, const int incX,
  324. const void *beta, void *Y, const int incY);
  325. void cblas_chbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  326. const int N, const int K, const void *alpha, const void *A,
  327. const int lda, const void *X, const int incX,
  328. const void *beta, void *Y, const int incY);
  329. void cblas_chpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  330. const int N, const void *alpha, const void *Ap,
  331. const void *X, const int incX,
  332. const void *beta, void *Y, const int incY);
  333. void cblas_cgeru(CBLAS_LAYOUT layout, const int M, const int N,
  334. const void *alpha, const void *X, const int incX,
  335. const void *Y, const int incY, void *A, const int lda);
  336. void cblas_cgerc(CBLAS_LAYOUT layout, const int M, const int N,
  337. const void *alpha, const void *X, const int incX,
  338. const void *Y, const int incY, void *A, const int lda);
  339. void cblas_cher(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  340. const int N, const float alpha, const void *X, const int incX,
  341. void *A, const int lda);
  342. void cblas_chpr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  343. const int N, const float alpha, const void *X,
  344. const int incX, void *A);
  345. void cblas_cher2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N,
  346. const void *alpha, const void *X, const int incX,
  347. const void *Y, const int incY, void *A, const int lda);
  348. void cblas_chpr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N,
  349. const void *alpha, const void *X, const int incX,
  350. const void *Y, const int incY, void *Ap);
  351. void cblas_zhemv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  352. const int N, const void *alpha, const void *A,
  353. const int lda, const void *X, const int incX,
  354. const void *beta, void *Y, const int incY);
  355. void cblas_zhbmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  356. const int N, const int K, const void *alpha, const void *A,
  357. const int lda, const void *X, const int incX,
  358. const void *beta, void *Y, const int incY);
  359. void cblas_zhpmv(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  360. const int N, const void *alpha, const void *Ap,
  361. const void *X, const int incX,
  362. const void *beta, void *Y, const int incY);
  363. void cblas_zgeru(CBLAS_LAYOUT layout, const int M, const int N,
  364. const void *alpha, const void *X, const int incX,
  365. const void *Y, const int incY, void *A, const int lda);
  366. void cblas_zgerc(CBLAS_LAYOUT layout, const int M, const int N,
  367. const void *alpha, const void *X, const int incX,
  368. const void *Y, const int incY, void *A, const int lda);
  369. void cblas_zher(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  370. const int N, const double alpha, const void *X, const int incX,
  371. void *A, const int lda);
  372. void cblas_zhpr(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  373. const int N, const double alpha, const void *X,
  374. const int incX, void *A);
  375. void cblas_zher2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N,
  376. const void *alpha, const void *X, const int incX,
  377. const void *Y, const int incY, void *A, const int lda);
  378. void cblas_zhpr2(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo, const int N,
  379. const void *alpha, const void *X, const int incX,
  380. const void *Y, const int incY, void *Ap);
  381. /*
  382. * ===========================================================================
  383. * Prototypes for level 3 BLAS
  384. * ===========================================================================
  385. */
  386. /*
  387. * Routines with standard 4 prefixes (S, D, C, Z)
  388. */
  389. void cblas_sgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA,
  390. CBLAS_TRANSPOSE TransB, const int M, const int N,
  391. const int K, const float alpha, const float *A,
  392. const int lda, const float *B, const int ldb,
  393. const float beta, float *C, const int ldc);
  394. void cblas_ssymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  395. CBLAS_UPLO Uplo, const int M, const int N,
  396. const float alpha, const float *A, const int lda,
  397. const float *B, const int ldb, const float beta,
  398. float *C, const int ldc);
  399. void cblas_ssyrk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  400. CBLAS_TRANSPOSE Trans, const int N, const int K,
  401. const float alpha, const float *A, const int lda,
  402. const float beta, float *C, const int ldc);
  403. void cblas_ssyr2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  404. CBLAS_TRANSPOSE Trans, const int N, const int K,
  405. const float alpha, const float *A, const int lda,
  406. const float *B, const int ldb, const float beta,
  407. float *C, const int ldc);
  408. void cblas_strmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  409. CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA,
  410. CBLAS_DIAG Diag, const int M, const int N,
  411. const float alpha, const float *A, const int lda,
  412. float *B, const int ldb);
  413. void cblas_strsm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  414. CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA,
  415. CBLAS_DIAG Diag, const int M, const int N,
  416. const float alpha, const float *A, const int lda,
  417. float *B, const int ldb);
  418. void cblas_dgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA,
  419. CBLAS_TRANSPOSE TransB, const int M, const int N,
  420. const int K, const double alpha, const double *A,
  421. const int lda, const double *B, const int ldb,
  422. const double beta, double *C, const int ldc);
  423. void cblas_dsymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  424. CBLAS_UPLO Uplo, const int M, const int N,
  425. const double alpha, const double *A, const int lda,
  426. const double *B, const int ldb, const double beta,
  427. double *C, const int ldc);
  428. void cblas_dsyrk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  429. CBLAS_TRANSPOSE Trans, const int N, const int K,
  430. const double alpha, const double *A, const int lda,
  431. const double beta, double *C, const int ldc);
  432. void cblas_dsyr2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  433. CBLAS_TRANSPOSE Trans, const int N, const int K,
  434. const double alpha, const double *A, const int lda,
  435. const double *B, const int ldb, const double beta,
  436. double *C, const int ldc);
  437. void cblas_dtrmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  438. CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA,
  439. CBLAS_DIAG Diag, const int M, const int N,
  440. const double alpha, const double *A, const int lda,
  441. double *B, const int ldb);
  442. void cblas_dtrsm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  443. CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA,
  444. CBLAS_DIAG Diag, const int M, const int N,
  445. const double alpha, const double *A, const int lda,
  446. double *B, const int ldb);
  447. void cblas_cgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA,
  448. CBLAS_TRANSPOSE TransB, const int M, const int N,
  449. const int K, const void *alpha, const void *A,
  450. const int lda, const void *B, const int ldb,
  451. const void *beta, void *C, const int ldc);
  452. void cblas_csymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  453. CBLAS_UPLO Uplo, const int M, const int N,
  454. const void *alpha, const void *A, const int lda,
  455. const void *B, const int ldb, const void *beta,
  456. void *C, const int ldc);
  457. void cblas_csyrk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  458. CBLAS_TRANSPOSE Trans, const int N, const int K,
  459. const void *alpha, const void *A, const int lda,
  460. const void *beta, void *C, const int ldc);
  461. void cblas_csyr2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  462. CBLAS_TRANSPOSE Trans, const int N, const int K,
  463. const void *alpha, const void *A, const int lda,
  464. const void *B, const int ldb, const void *beta,
  465. void *C, const int ldc);
  466. void cblas_ctrmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  467. CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA,
  468. CBLAS_DIAG Diag, const int M, const int N,
  469. const void *alpha, const void *A, const int lda,
  470. void *B, const int ldb);
  471. void cblas_ctrsm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  472. CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA,
  473. CBLAS_DIAG Diag, const int M, const int N,
  474. const void *alpha, const void *A, const int lda,
  475. void *B, const int ldb);
  476. void cblas_zgemm(CBLAS_LAYOUT layout, CBLAS_TRANSPOSE TransA,
  477. CBLAS_TRANSPOSE TransB, const int M, const int N,
  478. const int K, const void *alpha, const void *A,
  479. const int lda, const void *B, const int ldb,
  480. const void *beta, void *C, const int ldc);
  481. void cblas_zsymm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  482. CBLAS_UPLO Uplo, const int M, const int N,
  483. const void *alpha, const void *A, const int lda,
  484. const void *B, const int ldb, const void *beta,
  485. void *C, const int ldc);
  486. void cblas_zsyrk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  487. CBLAS_TRANSPOSE Trans, const int N, const int K,
  488. const void *alpha, const void *A, const int lda,
  489. const void *beta, void *C, const int ldc);
  490. void cblas_zsyr2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  491. CBLAS_TRANSPOSE Trans, const int N, const int K,
  492. const void *alpha, const void *A, const int lda,
  493. const void *B, const int ldb, const void *beta,
  494. void *C, const int ldc);
  495. void cblas_ztrmm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  496. CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA,
  497. CBLAS_DIAG Diag, const int M, const int N,
  498. const void *alpha, const void *A, const int lda,
  499. void *B, const int ldb);
  500. void cblas_ztrsm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  501. CBLAS_UPLO Uplo, CBLAS_TRANSPOSE TransA,
  502. CBLAS_DIAG Diag, const int M, const int N,
  503. const void *alpha, const void *A, const int lda,
  504. void *B, const int ldb);
  505. /*
  506. * Routines with prefixes C and Z only
  507. */
  508. void cblas_chemm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  509. CBLAS_UPLO Uplo, const int M, const int N,
  510. const void *alpha, const void *A, const int lda,
  511. const void *B, const int ldb, const void *beta,
  512. void *C, const int ldc);
  513. void cblas_cherk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  514. CBLAS_TRANSPOSE Trans, const int N, const int K,
  515. const float alpha, const void *A, const int lda,
  516. const float beta, void *C, const int ldc);
  517. void cblas_cher2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  518. CBLAS_TRANSPOSE Trans, const int N, const int K,
  519. const void *alpha, const void *A, const int lda,
  520. const void *B, const int ldb, const float beta,
  521. void *C, const int ldc);
  522. void cblas_zhemm(CBLAS_LAYOUT layout, CBLAS_SIDE Side,
  523. CBLAS_UPLO Uplo, const int M, const int N,
  524. const void *alpha, const void *A, const int lda,
  525. const void *B, const int ldb, const void *beta,
  526. void *C, const int ldc);
  527. void cblas_zherk(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  528. CBLAS_TRANSPOSE Trans, const int N, const int K,
  529. const double alpha, const void *A, const int lda,
  530. const double beta, void *C, const int ldc);
  531. void cblas_zher2k(CBLAS_LAYOUT layout, CBLAS_UPLO Uplo,
  532. CBLAS_TRANSPOSE Trans, const int N, const int K,
  533. const void *alpha, const void *A, const int lda,
  534. const void *B, const int ldb, const double beta,
  535. void *C, const int ldc);
  536. void cblas_xerbla(int p, const char *rout, const char *form, ...);
  537. #ifdef __cplusplus
  538. }
  539. #endif
  540. #endif