Hi Guys,
a bit of a naive question, but nonetheless. I am trying to break up a for loop in which a 2d Matrix is being read. I would like to write a callback function to consume row-wise/col-wise chunks per row/col iteration. Any hints on how to tie up the callback function with iteration?
bool ReadMatrix(const int** array) {
.....
int columns;// array col
int rows; //array rows
for(int col=0; col<columns; ++col) {
for(int row=0; row<rows; ++row) {
ReadValue(row, col); //arbitrary function... which i would like to tie up with iterations
}
}
....
}