I have matrix M:
float M[4][3] = { 0, 0, 0, 0, 1, 1, 1, 0, 1, 1, 1, 0};
And I need to cast M with the purpose of use the method
Ok, the old best:
float **M = new float*[4]; for(int i=0; i<4; i++){ M[i] = new float[3]; for(int j=0; j<3; j++){ M[i][j] = something... } }