-
-
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
feature request findmax(A,dims) #6716
Comments
If no one else beats me to it, I'll tackle it eventually, so I'm assigning it to myself. |
Up for grabs? This seems like a great start for anyone who wants to contribute to Julia, but needs a easy start. |
Sure ill give it a shot. I just submit a pull request when im done? sent from mobile
|
That would be awesome. @floswald, of course you're free to implement this any way you please, but if you'd like a recommendation: you're basically wanting to implement reduction with two output arrays, one containing the value of the maximum/minimum and the other the index at which it occurs. Look at To wrap your "core" in a nice function, see the 3-line definition of |
ok sounds great - i'm on it. i'm away for the weekend though, so if anyone needs this pronto, feel free to preempt me. thanks a lot for the pointer to |
hi guys,
but what are they doing? I guess I would have
sorry i couldnt find any docs on @nextract. |
For me this works:
Since
In "Cartesian" this looks like
where
I didn't document
is the same as
(I wonder if we should deprecate |
Hi @timholy |
still trying to understand your cartesian snippet:
can I ask what
but seems outdated (or wrongly used). sorry if this becoming too much work for you. |
For increasing |
Add region-based findmin and findmax (closes #6716)
How to replace the values in a matriz using maxval? |
@rosangelaoliveira4, we have a mailing list for general usage questions at https://groups.google.com/forum/#!forum/julia-users. Please feel free to ask questions there, people are very happy to help! Thanks! |
Thanks! |
getting the maximum and its location in one pass is very useful. at current it's not supported along dimension
d
of an array.it's odd to have
and not
findmax(A,dims)
The text was updated successfully, but these errors were encountered: