Hello,
I have 2 massive matrix's and I need to compare one matrix with another.. Now, I have come up with a solution that takes a 5x5 block of the matrix1 and compares it with a 5x5 block of matrix2, this happens until the end of both matrix's..
I'm confused to how I would select a 5x5 block of the two matrix. Here is the code:
for(int i=0; (i < 512); i++) // rows
{
for(int l=0; (l < 512); l++) // columns
{
for(int j=0; (j < 5); j++) // select 5 rows
{
for(int k=0; (k < 5); k++) // select 5 columns
{
cout << matrix2[j*512+k] << ' ';
}
cout << endl;
}
}
}
Does anyone have any ideas?
Thanks :)