Grid/__init__.py
def matrix2d_generator(m : int, n : int):
    '''
    matrix2d_generator
    ==================
    Generate the coordinates for a matrix in lexicographical order.

    Parameters
    ----------
    m : int
        number of rows in the matrix.
    n : int
        number of columns in the matrix.
    
    Returns
    -------
    A generator producing matrix coordinates.
    '''
    return (
        (i, j) for i in range(m) for j in range(n)
    )

    matrix2d_generator
    ==================
    Generate the coordinates for a matrix in lexicographical order.

    Parameters
    ----------
    m : int
        number of rows in the matrix.
    n : int
        number of columns in the matrix.
    
    Returns
    -------
    A generator producing matrix coordinates.
    
matrix2d_generator
Generate the coordinates for a matrix in lexicographical order.

Parameters

m : int
number of rows in the matrix.
n : int
number of columns in the matrix.

Returns

A generator producing matrix coordinates.
matrix2d_generator Generate the coordinates for a matrix in lexicographical order . Parameters m : int number of rows in the matrix . n : int number of columns in the matrix . Returns A generator producing matrix coordinates .
def matrix2d_generator(m : int, n : int):
    return (
        (i, j) for i in range(m) for j in range(n)
    )
def matrix2d_generator ( m : int , n : int ) : return ( ( i , j ) for i in range ( m ) for j in range ( n ) )
matrix2d_generator
Generate the coordinates for a matrix in lexicographical order.
matrix2d_generator Generate the coordinates for a matrix in lexicographical order .
'''
    matrix2d_generator
    ==================
    Generate the coordinates for a matrix in lexicographical order.

    Parameters
    ----------
    m : int
        number of rows in the matrix.
    n : int
        number of columns in the matrix.
    
    Returns
    -------
    A generator producing matrix coordinates.
    '''
m
int
n
int