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 order is supported only with default value "C".

See also

dpnp.full_like

Return a new array with shape of input filled with value.

dpnp.empty

Return a new uninitialized array.

dpnp.ones

Return a new array setting values to one.

dpnp.zeros

Return 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]