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
likeis supported only with default valueNone.See also
dpnp.empty_likeReturn an empty array with shape and type of input.
dpnp.onesReturn a new array setting values to one.
dpnp.zerosReturn a new array setting values to zero.
dpnp.fullReturn a new array of given shape filled with value.
Examples
>>> import dpnp as np >>> x = np.empty(4) >>> print(x) [0. 0. 0. 0.]