8x8 matrix constraint

In reply to dave_59:

Dave, Thank you.

You cannot use procedural for loops to do more complex iterations. → what does this mean?

Any ideas from others if i can somehow get the individual 3x3 matices, how do i constraint the 3x3 matrices to not have all FALSE and also affect the bigger 8x8 matrix?

// I need to find all the 36 3x3 matrices inside the 8x8 matrix and constraint them to be not all FALSE
rand mat_t matrix3x3[6][6][3][3];