-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: Add random.draw #397
Conversation
Implemented with `@generated_jit(nopython=True)`
@mmcky I'm fully in favor of this PR and it would help me clean up master if we could move quickly on it. Thanks. |
quantecon/random/utilities.py
Outdated
def draw(cdf, size=None): | ||
""" | ||
Generate a random sample according to the cumulative distribution | ||
given by `cdf`. Jit-complied by Numba in nonptython mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean "Jit-compiled by Numba in nopython mode"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah good catch, thanks.
I think this PR can be merged. @oyamad can you apply |
Close #393.
(Also revert the changes by #391, as we should not have both
random_choice
andrandom.draw
.)