[Numpy-discussion] minor improvment to ones

David Cournapeau david@ar.media.kyoto-u.ac...
Fri Jan 30 07:05:42 CST 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 *),


More information about the Numpy-discussion mailing list