I've a 2-d array declared as such
lower_tri = (float **)malloc(sizeof(float *)*(dimention)); for(i =0; i < dimention; ++i) lower_tri[i] = (float *)malloc(sizeof(float)*(i+1));
So that it looks like...
However, it causes a segmentation fault when I try to de-allocate the array with
(only in unix, Windows works fine)
I've tried using a for loop to deallocate the array row by row, but just come up with more errors.
Any idea how to deallocate this array?