I'm trying to pass a matrix into a function.
I declared a "matrix"
I then want to pass it into a function to make it into an identity matrix
I want to do this for a matrix of any size. Unfortunately I get an error that says:
Could anyone help?
I declared a "matrix"
Code:
double MyMatrix[14][14];
I then want to pass it into a function to make it into an identity matrix
Code:
void MakeEye(double ** TheMatrix, int size);
I want to do this for a matrix of any size. Unfortunately I get an error that says:
error: cannot convert 'double (*)[14]' to 'double**' for argument '1' to 'void MakeEye(double**,int)'
Could anyone help?