Le 22/01/2025 à 22:55, Harald Anlauf a écrit :
Dear all,
while looking at details of a related but slightly different PR, I found
that we did evaluate the arguments to MINLOC/MAXLOC too often in the
inlined version.
The attached patch creates temporaries for array elements where needed,
and ensures that each array element is only touched once. This required
a minor adjustment for the rank-1 algorithm, which is documented.
Regtested on x86_64-pc-linux-gnu. OK for mainline?
Looks good, OK.
Thanks.
Mikael