dpnp.random.Generator.dirichlet¶
method
- Generator.dirichlet(alpha, size=None, dtype=None, *, usm_type=None)[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. In double precision, one kernel is launched for every component when all of alpha is less than 0.1, as NumPy does. In single precision, alpha below the smallest
float32value is 0.