You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
313 B

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