

def most_square_shape(N):
    '\n    Return a rectangle (height, width) with area N that is closest to square.\n\n    Parameters\n    ----------\n    N : int\n        WRITEME\n\n    Returns\n    -------\n    WRITEME\n    '
    for i in xrange(int(numpy.sqrt(N)), 0, (- 1)):
        if (0 == (N % i)):
            return (i, (N / i))

dataset/ETHPy150Open lisa-lab/pylearn2/pylearn2/packaged_dependencies/theano_linear/imaging.py most_square_shape/original