[Numpy-discussion] minor improvment to ones

David Cournapeau david at ar.media.kyoto-u.ac.jp
Fri Jan 30 08:05:42 EST 2009


Neal Becker wrote:
> A nit, but it would be nice if 'ones' could fill with a value other than 1.
>
> Maybe an optional val= keyword?
>   

What would be the advantage compared to fill ? I would guess ones and
zeros are special because those two values are special (they can be
defined for many types, as  neutral elements for + and *),

David




More information about the NumPy-Discussion mailing list