aboutsummaryrefslogtreecommitdiff
path: root/cbits
diff options
context:
space:
mode:
authorTom Smeding <t.j.smeding@uu.nl>2024-06-10 13:23:38 +0200
committerTom Smeding <t.j.smeding@uu.nl>2024-06-10 13:28:51 +0200
commit596bce9b869cafc06d9b1567c3a3ed282f7441ba (patch)
tree6406ea65d4ac1f099ac8851d2db38a5fca4bc4e3 /cbits
parent8274da734aba266e86ac722b6a9e73afeeae59e6 (diff)
Rename arg{min,max} to {min,max}Index
Diffstat (limited to 'cbits')
-rw-r--r--cbits/arith.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cbits/arith.c b/cbits/arith.c
index 6ac49b8..5594c80 100644
--- a/cbits/arith.c
+++ b/cbits/arith.c
@@ -168,7 +168,7 @@ static double log1pexp_double(double x) { LOG1PEXP_IMPL(x); }
// - all strides are >0
// - shape is everywhere >0
// - rank is >= 1
-// Writes extreme index to outidx. If 'cmp' is '<', computes argmin; if '>', argmax.
+// Writes extreme index to outidx. If 'cmp' is '<', computes minindex ("argmin"); if '>', maxindex.
#define EXTREMUM_OP(name, cmp, typ) \
void oxarop_extremum_ ## name ## _ ## typ(i64 *outidx, i64 rank, const i64 *shape, const i64 *strides, const typ *arr) { \
typ best = arr[0]; \