(r, c=None)
return Matrix(r, c, [S.One]*r*c)
Returns a matrix of ones with ``r`` rows and ``c`` columns;
    if ``c`` is omitted a square matrix will be returned.

    See Also
    ========

    zeros
    eye
    diag
Returns a matrix of ones with ``r`` rows and ``c`` columns;
    if ``c`` is omitted a square matrix will be returned.
Returns a matrix of ones with r rows and c columns ; if c is omitted a square matrix will be returned .
def ones(r, c=None):
    """Returns a matrix of ones with ``r`` rows and ``c`` columns;
    if ``c`` is omitted a square matrix will be returned.

    See Also
    ========

    zeros
    eye
    diag
    """
    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)
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 )