Repository navigation
Adding min_value, max_value and minmax_value - #132
sriramster wants to merge 2 commits into
Conversation
Adding the value helper implementation for the min, max and minmax APIs. The approach is to use the underlying argmin, argmax, and argminmax APIs to return the index and fetch the value from the corresponding index. Signed-off-by: Sriram Raghunathan <sriram@hcoop.net>
Signed-off-by: Sriram Raghunathan <sriram@hcoop.net>
|
Thanks for the PR and the thorough tests! I'm going to pass on this one, though. These helpers wrap On top of that, adding an associated type plus required methods to the public The old TODO was misleading; I'll remove it. If you have a use case where the compiler does not vectorize a value-only min/max well, so that dedicated SIMD kernels here would pay off, I'd be happy to discuss that in an issue first. |
|
Thank you for the review and detailed explanation around this. |
|
Thanks a lot for taking the time to put this together, @sriramster. It was a pleasure to go through it, and I'm sorry it couldn't be merged. If you hit a case where a value-only min/max doesn't vectorize well, or anything else, you're always welcome back! :) |
This patch introduces and resolves the marked "todo" for the value helpers.