Replies: 2 comments 1 reply
-
I have needed to do that occasionally as well, so that does seem like a useful addition. I haven't come across the argmin / argmax naming before, I see that's common in science and mathematics communities, I wonder if there's a more discoverable name that could be used for people who aren't familiar with argmin/argmax and wouldn't think to look for it. Maybe something like Happy to look at a PR for this. |
Beta Was this translation helpful? Give feedback.
-
Added in #615 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I recently had to get the index of the maximum element in a vector and noticed that
argmax
does not exist. Maybe adding that andargmin
would make sense as the functions are somewhat common. I can open a PR should we decide to add it.Beta Was this translation helpful? Give feedback.
All reactions