def ones(r, c=None):
    from .dense import Matrix

    c = r if c is None else c
    r = as_int(r)
    c = as_int(c)
    return Matrix(r, c, [S.One]*r*c)
If L{ConnectionPool.close} is called after it has been started, but
dataset/ETHPy150Open sympy/sympy/sympy/matrices/dense.py/ones--crossover with--dataset/ETHPy150Open twisted/twisted/twisted/test/test_adbapi.py/ConnectionPoolTests.test_startedClose