> 2009/1/30 David Cournapeau <[email protected]>:
> 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 *),

I couldn't find the numpy fill function, until my tiny brain realized
you meant the ndarray method:

http://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.fill.html

Cheers,
Scott
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to