Implement argmin argmax#30
Conversation
|
Hey @munckymagik thanks for the comment! :) I have added a few tests and For https://github.com/numpy/numpy/blob/v1.10.1/numpy/core/fromnumeric.py#L967 For Julia, it seems like it just get the first index of min and returns that value (not a https://github.com/JuliaLang/julia/blob/80516ca20297a67b996caa08c38786332379b6a5/base/array.jl#L2159 Perhaps we can do it in a way similar to Julia but we can return a |
|
Thanks for jumping in @munckymagik! The issues and PRs of this repo are getting crowded, that's super cool 🚀 I guess the main choice we have to make concerns the number of outputs to be returned: if there is more than one minimum/maximum value, do we return just the indices for the first minimum/maximum value we encounter or do we want to return them all? If we align with Julia/NumPy, returning just the first one, then we should be able to get complexity down to |
|
Cool thanks, I have changed to return a single value. As the idea of this lib is to be closer to Let me know if returning a If this looks ok, I will add |
|
I left some comments for polishing, but the functionality is there 💯 @phungleson |
|
@LukeMathWalker Hey mate, I have made the changes, let me know if anything else is still missing. I probably will add |

Hey mates, this PR currently has a rough
implforargminfor discussions.Please have some comments. Once everyone is happy with the implementation, I will add necessary docs, tests.. and other methods.