17 lines
325 B
C
Raw Normal View History

2020-08-30 11:54:41 +02:00
#include <assert.h>
#include <string.h>
// declare what parts of the blas C-API we need
2021-09-14 00:13:48 +02:00
void dswap_(int* N, double* X, int* incX, double* Y, int* incY);
2020-08-30 11:54:41 +02:00
int main()
{
double x[4] = { 1, 2, 3, 4 };
double y[4] = { 8, 7, 7, 6 };
2021-09-14 00:13:48 +02:00
int N = 4;
int incX = 1;
int incY = 1;
dswap_(&N, x, &incX, y, &incY);
2020-08-30 11:54:41 +02:00
return 0;
}