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.

c_cblas1.c 1.7 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. * c_cblas1.c
  3. *
  4. * The program is a C wrapper for ccblat1.
  5. *
  6. * Written by Keita Teranishi. 2/11/1998
  7. *
  8. */
  9. #include "common.h"
  10. #include "cblas_test.h"
  11. void F77_caxpy(const int *N, OPENBLAS_CONST void *alpha, void *X,
  12. const int *incX, void *Y, const int *incY)
  13. {
  14. cblas_caxpy(*N, alpha, X, *incX, Y, *incY);
  15. return;
  16. }
  17. void F77_ccopy(const int *N, void *X, const int *incX,
  18. void *Y, const int *incY)
  19. {
  20. cblas_ccopy(*N, X, *incX, Y, *incY);
  21. return;
  22. }
  23. void F77_cdotc(const int *N, void *X, const int *incX,
  24. void *Y, const int *incY, void *dotc)
  25. {
  26. cblas_cdotc_sub(*N, X, *incX, Y, *incY, dotc);
  27. return;
  28. }
  29. void F77_cdotu(const int *N, void *X, const int *incX,
  30. void *Y, const int *incY,void *dotu)
  31. {
  32. cblas_cdotu_sub(*N, X, *incX, Y, *incY, dotu);
  33. return;
  34. }
  35. void F77_cscal(const int *N, const void * *alpha, void *X,
  36. const int *incX)
  37. {
  38. cblas_cscal(*N, alpha, X, *incX);
  39. return;
  40. }
  41. void F77_csscal(const int *N, const float *alpha, void *X,
  42. const int *incX)
  43. {
  44. cblas_csscal(*N, *alpha, X, *incX);
  45. return;
  46. }
  47. void F77_cswap( const int *N, void *X, const int *incX,
  48. void *Y, const int *incY)
  49. {
  50. cblas_cswap(*N,X,*incX,Y,*incY);
  51. return;
  52. }
  53. int F77_icamax(const int *N, OPENBLAS_CONST void *X, const int *incX)
  54. {
  55. if (*N < 1 || *incX < 1) return(0);
  56. return (cblas_icamax(*N, X, *incX)+1);
  57. }
  58. float F77_scnrm2(const int *N, OPENBLAS_CONST void *X, const int *incX)
  59. {
  60. return cblas_scnrm2(*N, X, *incX);
  61. }
  62. float F77_scasum(const int *N, void *X, const int *incX)
  63. {
  64. return cblas_scasum(*N, X, *incX);
  65. }