My instructor has given me a project, specifically stating that we arenotallowed to modify function prototypes. The thing is, this double matrix bounces from being a double pointer for allocation, a triple pointer for assigning values, and back to a double pointer for multiplication. (It's for a matrix multiplication thingie)

As I have it so far, x_matrix[0][0][1] = #, x_matrix[0][1][0] = #, for example. The first [] never changes. The values are assign a'ok, but in the multiplication function I only have access to x_matrix[#][#] , which doesn't do any good.

double **thecolumn;

thecolumn = mm_alloc(thesizeofmatrix);

x_matrix = &thecolumn;

Is there anyway I can turn x_matrix into a double pointer, seeing as it's first [] is useless?