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

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