-
Notifications
You must be signed in to change notification settings - Fork 43
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
findmax
does not work on DimStacks
#858
Comments
btw, I don't need this, just an edge case I stumbled into. |
Oh no now reductions are kind of broken if you expect the new iteration 😿 The NamedTuple/Array crossover is endless pain, every change breaks some other expectation |
But doing this over a julia> maximum(s) # fine
(one = 6.0, two = 12.0f0, three = 18) Its also generally useless over multi-value objects like arrays, because you just end up with a single object that was chosen as the "maximum" for some arcane reason or other (maximum first value in this case), rather than the maximum of each separate position in the vector. TLDR we can't have |
So this is the problem: julia> maximum([(a=1, b=200), (a=2, b=1)])
(a = 2, b = 1) We may need a slightly more formal definition of what a |
This is what
|
MWE:
Error:
If this is intended, we should dispatch on
findmax
and throw a better error message. If not - how would this work? Returning a namedtuple of selectors for each layer seems a bit arbitrary...The text was updated successfully, but these errors were encountered: