You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Standard uniform random variables underly many other random algorithms. For example, choice makes use of standard uniforms when sampling with non-uniform probabilities. Generator.random already supports the dtype argument but is limited to float32 and float64. It would be useful for anyone working in higher precision to have support for longdouble and other extended precision values available on specific platform.
import numpy as np
gen = np.random.default_rng()
gen.random(1, dtype=np.longdouble)
The text was updated successfully, but these errors were encountered:
For a specific use case, this feature is needed to implement #6132.
bashtage
changed the title
ENH: Add support for extended prevision standard uniform variables
ENH: Add support for extended precision standard uniform variables
Apr 23, 2021
Feature
Standard uniform random variables underly many other random algorithms. For example,
choice
makes use of standard uniforms when sampling with non-uniform probabilities.Generator.random
already supports thedtype
argument but is limited tofloat32
andfloat64
. It would be useful for anyone working in higher precision to have support forlongdouble
and other extended precision values available on specific platform.The text was updated successfully, but these errors were encountered: