Hello !
I have the following question: if i have a NXN matrix ([[f32; MAX]; MAX]) that is ordered by blocks, for example BLOCK_SIZE = 64. How can i get the blocks ? If i do:
matrix.windows(BLOCK_SIZE)
[ [0, 1, 2, 3, 4]
[5, 6, 7, 8]
[9, 10, 11, 12]
[13, 14, 15, 16]
]
if I do:
matrix.windows(2)
it gives me:
[
[0, 1, 2, 3, 4]
[5, 6, 7, 8]
]
[
[5, 6, 7, 8] ]
[9, 10, 11, 12]
]
[
[9, 10, 11, 12]
[13, 14, 15, 16]
]
but i need
[
[0, 1, 2, 3, 4]
[5, 6, 7, 8]
]
[
[9, 10, 11, 12]
[13, 14, 15, 16]
]
Any suggestions ? Thank you very much !