cunumeric.full#

cunumeric.full(shape, value, dtype=None)#

Return a new array of given shape and type, filled with fill_value.

Parameters
  • shape (int or Sequence[int]) – Shape of the new array.

  • fill_value (scalar) – Fill value.

  • dtype (data-type, optional) –

    The desired data-type for the array The default, None, means

    cunumeric.array(fill_value).dtype.

Returns

out – Array of fill_value with the given shape and dtype.

Return type

ndarray

See also

numpy.full

Availability

Multiple GPUs, Multiple CPUs