From 596bce9b869cafc06d9b1567c3a3ed282f7441ba Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Mon, 10 Jun 2024 13:23:38 +0200 Subject: Rename arg{min,max} to {min,max}Index --- cbits/arith.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cbits/arith.c') 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]; \ -- cgit v1.2.3-70-g09d2