-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
ARROW-12404: [C++] Implement "random" nullary function that generates uniform random between 0 and 1 #11864
Conversation
|
1334b15
to
d6d83ba
Compare
d6d83ba
to
f188f79
Compare
By the way, it's not obvious the complicated |
That said, it may compile down to the same formula after optimizations. I can't tell for sure. |
+1 for the simple implementation. I believe they are same, at least in theory. It's nothing more than |
f41d9a4
to
9d327a4
Compare
9d327a4
to
f96adea
Compare
Simplified the formula and made the seed initialization static, I think it's ready for review now. |
b1b7089
to
aa13afe
Compare
9689824
to
fa81409
Compare
I've made it return an array, with the length in the options. |
Please rebase to latest master branch and fix merge conflicts. |
da8fe14
to
7355c8c
Compare
@pitrou I was hoping that |
e356e9f
to
51d01e3
Compare
… uniform random between 0 and 1
Bypass array builder API.
51d01e3
to
7cb7031
Compare
Any additional feedback on this? I think I've addressed all comments |
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.
LGTM. Thanks @asuhan !
I created jira issue to track python bind
https://issues.apache.org/jira/browse/ARROW-15219
@pitrou, do you have other comments? |
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.
+1 from me. I just pushed two minor changes.
Thank you very much for this, @asuhan ! |
Benchmark runs are scheduled for baseline = ab9528e and contender = ceaed97. ceaed97 is a master commit associated with this PR. Results will be available as each benchmark for each run completes. |
@github-actions crossbow submit debian-bullseye-amd64 |
Revision: 4af2978 Submitted crossbow builds: ursacomputing/crossbow @ actions-1357
|
No description provided.