-
Notifications
You must be signed in to change notification settings - Fork 226
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
Replace int with long long in nct pdf and cdf #955
Conversation
Thanks Matt! |
FWIW, it wouldn't hurt to |
The failures in this PR should be fixed by boostorg/multiprecision#536. Sorry about that! |
@jzmaddock To buy us even more space I think we could conditionally use |
A quick bit of Googling isn't turning much up. And yes I did wonder about using The other suggestion was to raise a domain_error in this case, and given that we know the limit on the non-centrality parameter this could be done early on in the distribution constructor? |
For all of these it would be easy to wrap the call to |
Yup, although it circumvents the policy mechanism and building in exception-free environments, so maybe updating the checks for example here:
|
Do we know the exact values for the nct failures because they are near, but not at the square? The other ones are straight-forward. |
Ah, good point. Yes we need to be able to square the non-centrality, but in all cases we need to leave a bit of headroom as well, because we need to be able to iterate forward from what is only a starting point. So would |
I think that would work. Do you me to merge this so you can take over the error handling? I am very bad at working with the policies. |
That's fine yes: BTW I'm still waiting for CI on multiprecision to cycle to fix those last few failures. Oh, and there's a boost release incoming.... once we're all green again we should probably do a merge to master and then get back to the bugs. |
Ok. Once I see the notification that you merged the multiprecision PR I will cycle the CI on this one to confirm the changes. |
Cycling now... |
This is back to green so looks like your multiprecision fixes worked. Merging. |
See: scipy/scipy#17916
The upper bound for the non-centrality parameter is still lower than 2e16 from the reproducer, but it is much higher than it was. By extension the change also applies to non-central beta distribution.