[pypy-issue] [issue1007] add "fill" method for numpypy array

Dmitrey tracker at bugs.pypy.org
Wed Jan 18 16:55:49 CET 2012


New submission from Dmitrey <dmitrey15 at ukr.net>:

the method is quite easy to implement, yet very important - it is encountered
very often.
>>> a = empty((2,3))
>>> a.fill(0.5)
>>> a
array([[ 0.5,  0.5,  0.5],
       [ 0.5,  0.5,  0.5]])
b=empty(4,bool)
>>> b.fill(False)
>>> b
array([False, False, False, False], dtype=bool)

----------
messages: 3718
nosy: Dmitrey, pypy-issue
priority: wish
status: unread
title: add "fill" method for numpypy array

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1007>
________________________________________


More information about the pypy-issue mailing list