dpnp.empty
- dpnp.empty(shape, dtype='f8', order='C', like=None, device=None, usm_type='device', sycl_queue=None)[source]
Return a new array of given shape and type, without initializing entries.
For full documentation refer to
numpy.empty
.Limitations
Parameter
like
is supported only with default valueNone
.See also
dpnp.empty_like
Return an empty array with shape and type of input.
dpnp.ones
Return a new array setting values to one.
dpnp.zeros
Return a new array setting values to zero.
dpnp.full
Return a new array of given shape filled with value.
Examples
>>> import dpnp as np >>> x = np.empty(4) >>> print(x) [0. 0. 0. 0.]