Introduction
Introduction Statistics Contact Development Disclaimer Help
tsum: fix sum computation - numtools - perform numerical operations on vectors …
git clone git://src.adamsgaard.dk/numtools
Log
Files
Refs
README
LICENSE
---
commit b26d630f43826b38df0e7ec28242b28bb99178ab
parent 91acaf11d2a735231cf90a098e6c70d37920d3d3
Author: Anders Damsgaard <[email protected]>
Date: Fri, 8 Jan 2021 10:34:14 +0100
sum: fix sum computation
Diffstat:
M sum | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sum b/sum
t@@ -1,7 +1,7 @@
#!/usr/bin/awk -f
{
for (i = 0; i < NF; i++)
- sum[i] = $i
+ sum[i] += $i
}
END {
for (i = 0; i < NF; i++) {
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.