cunumeric.full#

cunumeric.full(shape: NdShapeLike, value: Any, dtype: npt.DTypeLike | None = None) ndarray#

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

Parameters:
  • shape (int or tuple[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