-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Add VariableInSetRef and is_variable_in_set #3955
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3955 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 43 43
Lines 6054 6085 +31
=========================================
+ Hits 6054 6085 +31 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
So thoughts on the naming of these? |
Nightly is failing because it seems to have lost the ability to infer function fused_map_reduce(op::F, args::Vararg{Any,N}) where {F<:Function,N}
_check_same_length(args...)
T = promote_map_reduce(op, _concrete_eltype.(args)...)
accumulator = neutral_element(reduce_op(op), T)
buffer = buffer_for(op, T, eltype.(args)...)
for I in zip(eachindex.(args)...)
accumulator =
buffered_operate!!(buffer, op, accumulator, getindex.(args, I)...)
end
return accumulator
end which is kinda-not-surprising. It's pretty weird code that relies on splatting and types and stuff. |
I mostly like this PR very much. My only concern is the little inconsistency on the macro variable parameters. All(?) explicit parameters like Bin (binary=true), Int (integer=trey), Bounds (lower...) Except for PSD, although we do not have (posdef=true). Maybe the solution for this is to acknowledge that the PSD key is legacy and remove is almost everywhere in the docs, and only keep it is the variable macro doc with a strong recommendation for the "set =" syntax. |
Yes, the PSD is mostly legacy and |
The reason we don't have I don't have strong opinions on |
Closes #3951