cunumeric.random.standard_gamma#

cunumeric.random.standard_gamma(shape, size=None)#

Draw samples from a standard Gamma distribution.

Samples are drawn from a Gamma distribution with specified parameters, shape (sometimes designated “k”) and scale=1.

Parameters:
  • shape (float) – Parameter, must be non-negative.

  • size (int or tuple of ints, optional) – Output shape. If the given shape is, e.g., (m, n, k), then m * n * k samples are drawn. Default is None, in which case a single value is returned.

Returns:

out – Drawn samples from the parameterized standard gamma distribution.

Return type:

ndarray or scalar

Availability:

Multiple GPUs, Multiple CPUs