get_row_col_index_maps function

Figure out row and column index maps