-
-
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
Unary + and * promote numbers #7338
Comments
I rather think we should make See issues #5806 #5413 |
I agree that we want |
Yes, that's true --- I think we'd have to keep Another possibility is providing a good interface for "promoting reduction", e.g. summing Float32s in double precision, or summing Int8s as Int64s, etc. |
|
Is there an open issue with the 0.4-projects tag that subsumes this issue? From some searching, I don't see one. |
Quickest way to find out is probably to add the milestone, then get yelled at if it was a bad idea. |
Good strategy. Might be worth noting that there are bunch of open issues that touch on parts of this issue, but they don't seem to summarize the core issue very well. For example, there's a bunch of good points in #6211, but you wouldn't find it by searching the titles of issues. |
If
+
and*
promote numbers, as follows, writing type stable codes would be more convenient:Specialized methods can be provided so that we don't need to actually do the computation for common numeric types.
The text was updated successfully, but these errors were encountered: