float* values = calloc(m*n, sizeof(float));
float** rows = malloc(n*sizeof(float*));
for (int i=0; i<n; ++i)
{
rows[i] = values + i*m;
}
What is this code trying to so ? Can you explain me the first 2 lines in detail ? I am not getting it. thanks.