假设我有一个双 for 循环。
/*Just a double for loop
*/
for(int i = 0; i<IMAX; i++){
for(int j = 0; j<JMAX; j++){
count++;
recover_loop_indices(count,IMAX,JMAX); /*this is not real world code.Just to illustrate what I mean*/
}
}
我的问题是,给定和count
,是否可以恢复唯一的循环索引 i 和 j?IMAX
JMAX