Skip to content

Commit 87e6560

Browse files
committed
Update docstring for fill method
1 parent 957b93a commit 87e6560

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dpnp/dpnp_array.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -885,13 +885,16 @@ def fill(self, value):
885885
"""
886886
Fill the array with a scalar value.
887887
888+
For full documentation refer to :obj:`numpy.ndarray.fill`.
889+
888890
Parameters
889891
----------
890-
value : scalar
892+
value : {dpnp.ndarray, usm_ndarray, scalar}
891893
All elements of `a` will be assigned this value.
892894
893895
Examples
894896
--------
897+
>>> import dpnp as np
895898
>>> a = np.array([1, 2])
896899
>>> a.fill(0)
897900
>>> a

0 commit comments

Comments
 (0)