def array2DIndices_enumerate(arr):
rows = arr[<NUM_LIT:0>]<EOL>cols = arr[<NUM_LIT:1>]<EOL>arr_index = zeros((rows * cols, <NUM_LIT:2>))<EOL>count = <NUM_LIT:0><EOL>for row in arange(<NUM_LIT:0>, rows):<EOL><INDENT>for col in arange(<NUM_LIT:0>, cols):<EOL><INDENT>arr_index[count] = array([row, col])<EOL>count = count + <NUM_LIT:1><EOL><DEDENT><DEDENT>return arr_index<EOL>
DESC
    Given a 2D array defined by arr, prepare an explicit list
    of the indices.

ARGS
    arr        in                 2 element array with the first
                                  element the rows and the second
                                  the cols

RET
    A list of explicit 2D coordinates.