dpnp.random.Generator.dirichlet

method

Generator.dirichlet(alpha, size=None, dtype=None, *, usm_type='device')[source]

Draw samples from the Dirichlet distribution.

For full documentation refer to numpy.random.Generator.dirichlet.

Limitations

dtype and usm_type are not in NumPy's signature. alpha is copied to the host, where it is checked, and one kernel is launched for every component when all of alpha is less than 0.1.