ufunc
numpy.ctypeslib
numpy.dual
numpy.fft
numpy.linalg
numpy.matlib
numpy.random
numpy.testing
numpy.typing
numpy.distutils
method
Fill the array with a scalar value.
All elements of a will be assigned this value.
Examples
>>> a = np.array([1, 2]) >>> a.fill(0) >>> a array([0, 0]) >>> a = np.empty(2) >>> a.fill(1) >>> a array([1., 1.])
previous
numpy.char.chararray.expandtabs
next
numpy.char.chararray.find