-
Notifications
You must be signed in to change notification settings - Fork 34
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
Commonize promotion rules #207
Conversation
Codecov Report
@@ Coverage Diff @@
## master #207 +/- ##
==========================================
- Coverage 89.21% 87.84% -1.37%
==========================================
Files 6 6
Lines 482 469 -13
==========================================
- Hits 430 412 -18
- Misses 52 57 +5
Continue to review full report at Codecov.
|
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.
Sorry I didn't notice this earlier. Very nice improvement. Thanks for adding @inferred
to the tests.
This makes the promotion rules for `Fixed` consistent with the rules used within `Normed`: - `Fixed` and `Integer` are promoted to `floattype` - `Fixed` and `AbstractFloat` are promoted to `floattype` with sufficient precision This adds the rule: - `Fixed` and `Normed` are promoted to `floattype` This also stops using `@generated` function.
0c43ac8
to
9c52516
Compare
I ran I'm not sure how |
Closes #192, #126, #78
This makes the promotion rules for
Fixed
consistent with the rules used withinNormed
:Fixed
andInteger
are promoted tofloattype
Fixed
andAbstractFloat
are promoted tofloattype
with sufficient precisionThis adds the rule:
Fixed
andNormed
are promoted tofloattype
This also stops using
@generated
function.