So, I have to use this function from GSL. This one:
gsl_matrix_view_array (double * base, size_t n1, size_t n2)
The first argument (double * base
) is the matrix I need to pass to it, which is read as input from the user.
I'm dynamically allocating it this way:
double **base;
base = malloc(size*sizeof(double*));
for(i=0;i<size;i++)
base[i] = malloc(size*sizeof(double));
Where size is given by the user. But then, when the code runs, it warns this :
"passing arg 1 of gsl_matrix_view_array from incompatible pointer type".
What is happening?