MV2

ones(myshape, typecode=<class 'float'>, savespace=0, axes=None, attributes=None, id=None, grid=None, dtype=None)[source]

ones(n, typecode=float, savespace=0, axes=None, attributes=None, id=None) = an array of all ones of the given length or shape.