diff options
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) } |
