We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
fill
1 parent 957b93a commit 87e6560Copy full SHA for 87e6560
dpnp/dpnp_array.py
@@ -885,13 +885,16 @@ def fill(self, value):
885
"""
886
Fill the array with a scalar value.
887
888
+ For full documentation refer to :obj:`numpy.ndarray.fill`.
889
+
890
Parameters
891
----------
- value : scalar
892
+ value : {dpnp.ndarray, usm_ndarray, scalar}
893
All elements of `a` will be assigned this value.
894
895
Examples
896
--------
897
+ >>> import dpnp as np
898
>>> a = np.array([1, 2])
899
>>> a.fill(0)
900
>>> a
0 commit comments