// // Created by anapt on 17/1/2018. // #include #include #include #include #include #include #define X "data/X.bin" #define Y "data/X.bin" #define COLUMNS 2 #define ROWS 6 #define N 4 // allocates a 2d array in continuous memory positions double **alloc_2d_double(int rows, int cols) { double *data = (double *)malloc(rows*cols*sizeof(double)); double **array= (double **)malloc(rows*sizeof(double*)); for (int i=0; i