cblas.h 32 KB

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