summaryrefslogtreecommitdiffstats
path: root/Tests/FindBLAS/Test/main.c
blob: 8e585594b67c08b5183afba9267d862a2246d48b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <assert.h>
#include <string.h>

typedef int blas_int;

// declare what parts of the blas C-API we need
void dswap_(blas_int* N, double* X, blas_int* incX, double* Y, blas_int* incY);

int main()
{
  double x[4] = { 1, 2, 3, 4 };
  double y[4] = { 8, 7, 7, 6 };
  blas_int N = 4;
  blas_int incX = 1;
  blas_int incY = 1;
  dswap_(&N, x, &incX, y, &incY);
  return 0;
}