From 839764bd955d2bddedb4a38ab1d4d92c797c56b9 Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Tue, 27 Nov 2012 18:20:06 +1100 Subject: Thesis and performance testing related stuff. --- impl/performance/generate-dense.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 impl/performance/generate-dense.py (limited to 'impl/performance/generate-dense.py') diff --git a/impl/performance/generate-dense.py b/impl/performance/generate-dense.py new file mode 100644 index 0000000..0efeed4 --- /dev/null +++ b/impl/performance/generate-dense.py @@ -0,0 +1,13 @@ +import sys + +size = int(sys.argv[1]) + +for i in xrange(size): + expr = "max(0" + for j in xrange(size): + if j == i: + continue + expr += ',' + expr += "x"+str(j)+" + "+str(j)+'' + expr += ")" + print 'x'+str(i)+' = '+expr -- cgit v1.2.3