[PATCH] D67959: [LNT] Simplify population of alldata in lF_oneway
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 24 05:35:37 PDT 2019
thopre created this revision.
thopre added reviewers: cmatthews, hubert.reinterpretcast, kristof.beyls.
Use a simpler iteration to populate alldata list in lF_oneway.
https://reviews.llvm.org/D67959
Files:
lnt/external/stats/stats.py
Index: lnt/external/stats/stats.py
===================================================================
--- lnt/external/stats/stats.py
+++ lnt/external/stats/stats.py
@@ -1563,8 +1563,8 @@
"""
a = len(lists) # ANOVA on 'a' groups, each in it's own list
alldata = []
- for i in range(len(lists)):
- alldata = alldata + lists[i]
+ for l in lists:
+ alldata.extend(l)
alldata = N.array(alldata)
bign = len(alldata)
sstot = ass(alldata)-(asquare_of_sums(alldata)/float(bign))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67959.221520.patch
Type: text/x-patch
Size: 528 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190924/3e675c75/attachment.bin>
More information about the llvm-commits
mailing list