diff options
| author | wukong <wukong@longaeva> | 2026-04-11 22:52:53 -0700 |
|---|---|---|
| committer | wukong <wukong@longaeva> | 2026-04-11 22:52:53 -0700 |
| commit | e3f9ccd5303c516d2e1c48112d8b52609ce4ad5e (patch) | |
| tree | fb564d48dd28dc4fa158f05c6c585ac43d61832e /ludcmp.awk | |
| parent | 4c4eb1bd8f003b3b57707badd2dd089ed193a896 (diff) | |
corrected instances of variable name mismatch after merge;
Diffstat (limited to '')
| -rw-r--r-- | ludcmp.awk | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -66,13 +66,13 @@ NR == 1 { # read input data NF { - if (NF > max_nf) + if (NF > nf_max) (NF > nf_max) ? nf_max = NF : nf_max = nf_max for (n=1; n<=NF; n++) { if ($n ~ number) { count[n] += 1 - (count[n] == 1 || max_nf > size) ? size = max_nf : size = size + (count[n] == 1 || nf_max > size) ? size = nf_max : size = size (count[n] == 1 || count[n] > size) ? size = count[n] : size = size matrix[count[n],n] = $n print(matrix[count[n],n]) @@ -83,7 +83,7 @@ NF { END { printf(ORS) - print(NR, max_nf, size) + print(NR, nf_max, size) printf(ORS) lu_decomp(matrix, size) } |
