for loop

Hi dears

I have a problem in my program that is :

In part of my program , one function find a matrix like this

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
for (i = 0; i <= n - 1; i++)
{
  for (j = 0; j <= N - 1; j++)
  {
    for (k = j+1 ; k<= N - 1; k++)
    {
       if (mix[j][i] == mix[k][i])
       {
	  conflictMatrix[j][k] = 1;
       }
       else
       {
	  conflictMatrix[j][k] = 0;
       }
     }
   }
}


now output from this code is input for next function
for example N=8 , n=log2N=3 :
with these loops we find 3 matrix 8*8
now , for next function input I need one matrix 8*8 that is all above 3 matrix in one matrix .
would you please help me that how to find this matrix ?
Topic archived. No new replies allowed.