cupynumeric.empty#

cupynumeric.empty(shape, dtype=float, *, device=None)#

Return a new array of given shape and type, without initializing entries.

Parameters:
  • shape (int or tuple[int]) – Shape of the empty array.

  • dtype (data-type, optional) – Desired output data-type for the array. Default is cupynumeric.float64.

  • device (None, optional) – Array API device selector. cuPyNumeric currently supports only None.

Returns:

out – Array of uninitialized (arbitrary) data of the given shape and dtype.

Return type:

ndarray

See also

numpy.empty

Availability:

Multiple GPUs, Multiple CPUs