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)
Returns a matrix of ones with ``r`` rows and ``c`` columns;
dataset/ETHPy150Open sympy/sympy/sympy/matrices/dense.py/ones