dpnp.full
- dpnp.full(shape, fill_value, dtype=None, order='C')[source]
Return a new array of given shape and type, filled with fill_value.
For full documentation refer to
numpy.full.Limitations
Parameter
orderis supported only with default value"C".See also
dpnp.full_likeReturn a new array with shape of input filled with value.
dpnp.emptyReturn a new uninitialized array.
dpnp.onesReturn a new array setting values to one.
dpnp.zerosReturn a new array setting values to zero.
Examples
>>> import dpnp as np >>> x = np.full(4, 10) >>> [i for i in x] [10, 10, 10, 10]