main.c 313 B

1234567891011121314
  1. #include <assert.h>
  2. #include <string.h>
  3. // declare what parts of the blas C-API we need
  4. void cblas_dswap(const int N, double* X, const int incX, double* Y,
  5. const int incY);
  6. int main()
  7. {
  8. double x[4] = { 1, 2, 3, 4 };
  9. double y[4] = { 8, 7, 7, 6 };
  10. cblas_dswap(4, x, 1, y, 1);
  11. return 0;
  12. }