-
Notifications
You must be signed in to change notification settings - Fork 33
Use sampler-based Random API #206
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #206 +/- ##
==========================================
+ Coverage 87.84% 87.89% +0.05%
==========================================
Files 6 6
Lines 469 471 +2
==========================================
+ Hits 412 414 +2
Misses 57 57
Continue to review full report at Codecov.
|
How bad is the regression for generation? |
This avoids the performance problem with `ReinterpretArray`.
I added a method using |
Thank you for your prompt review. |
This prevents `rand` from returning a `ReinterpretArray` to avoid the performance problem with `ReinterpretArray` . This also supports specifying the RNG option.
This prevents `rand` from returning a `ReinterpretArray` to avoid the performance problem with `ReinterpretArray` . This also supports specifying the RNG option.
This prevents `rand` from returning a `ReinterpretArray` to avoid the performance problem with `ReinterpretArray` . This also supports specifying the RNG option.
This prevents `rand` from returning a `ReinterpretArray` to avoid the performance problem with `ReinterpretArray` . This also supports specifying the RNG option.
This prevents `rand` from returning a `ReinterpretArray` to avoid the performance problem with `ReinterpretArray` . This also supports specifying the RNG option.
This also backports the changes in PR JuliaMath#270, JuliaMath#278
This also backports the changes in PR JuliaMath#270, JuliaMath#278.
Closes #196, Fixes #125
This avoids the performance problem with
ReinterpretArray
.On the other hand, the time for generating the random number array with the default RNG is significantly increased.I chose a minimalistic and straightforward implementation for now.