From: Matthew Fernandez Date: Sat, 11 Sep 2021 17:09:53 +0000 (-0700) Subject: lu_decompose: rephrase an open coded fmax X-Git-Tag: 2.49.1~10^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=62b5c06a47b14a61dbe25f01931ea2bf5ad85a6e;p=graphviz lu_decompose: rephrase an open coded fmax --- diff --git a/lib/neatogen/lu.c b/lib/neatogen/lu.c index ad4e550ff..e0e013ae9 100644 --- a/lib/neatogen/lu.c +++ b/lib/neatogen/lu.c @@ -79,8 +79,7 @@ int lu_decompose(double **a, int n) /* Find the largest element in each row for row equilibration */ biggest = 0.0; for (j = 0; j < n; j++) - if (biggest < (tempf = fabs(lu[i][j] = a[i][j]))) - biggest = tempf; + biggest = fmax(biggest, fabs(lu[i][j] = a[i][j])); if (biggest != 0.0) scales[i] = 1.0 / biggest; else {