-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
small change in rational constructor #23174
Conversation
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.
Seems reasonable enough to me. Anyone have any objections to this change? I guess my one concern is checking the sign of the denominator. But I suppose if one uses a type where sign doesn't make sense, it can always just return 1.
should probably @nanosoldier |
Thanks for the review. The |
If Edit: although I guess that means that |
I am fine with any suggestion that gives me a handle on modifying the construction of |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @ararslan |
Those benchmark results seem unbelievable; is everything running correctly? If so, than I will have to check what is going on, but most of these regressions seem completely independent of |
Likely some noise? Let's rerun |
Your benchmark job has completed - possible performance regressions were detected. A full report can be found here. cc @ararslan |
All regressions from latest benchmark seem to fall just outside of the tolerance window, so I guess it is still noise? @StefanKarpinski , would you like me to change |
I'm cool with your current PR. If it comes up in the future, we can always introduce a new factorization point for this and I think |
Ok great. And you agree with my assessment that the benchmark regressions are noise? Is CI always so unreliable these days? Any other requests/requirements before this can be merged? PS: This is what motivated this PR -> https://github.com/Jutho/WignerSymbols.jl |
Regressions are probably noise.
Yes. @travis-ci has been oversubscribing their machines for months now and it has made their service (which we pay for) completely useless since it never actually passes. We have raised the issue with them multiple times and so far they have not managed to do anything helpful. @appveyor is not usually too bad – they should consider offering Linux and/or Mac CI to take advantage of the situation and get some new customers. We would happily jump ship from Travis at this point, and we are, in fact actively investigating switching to @circleci, which seems to have much better performance (#23188). |
Lets rerun CI, but should be good to go? |
Thanks |
This small change is required for a custom type of mine that represents integers as their prime factorization. In this format,
*
,lcd
andgcd
are easy, and so isdivgcd
. However, generaldiv
is not necessarily easy.This PR also fixes consistency. On master
divgcd
is used in the various//
methods, but not in the actualRational
constructor itself.