X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Ftime_dennyfliegner.cpp;h=4ed5642b17b9f970e80ac5a6620bfbb2eb8fcb30;hb=63f3e977f92d51ea173382a9b7c4c3b18bda7b8e;hp=6294dacaf36d69708a5829b904419fc6ccc495a2;hpb=47ecb72dce5ea9c917d1e1e77863c45a8b2b1bba;p=ginac.git diff --git a/check/time_dennyfliegner.cpp b/check/time_dennyfliegner.cpp index 6294daca..4ed5642b 100644 --- a/check/time_dennyfliegner.cpp +++ b/check/time_dennyfliegner.cpp @@ -7,7 +7,7 @@ * after which e should be just a1^2. */ /* - * GiNaC Copyright (C) 1999-2016 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2018 Johannes Gutenberg University Mainz, Germany * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -66,15 +66,10 @@ unsigned time_dennyfliegner() cout << "timing commutative expansion and substitution" << flush; - vector sizes; + vector sizes = {100, 200, 400, 800}; vector times; timer breitling; - sizes.push_back(100); - sizes.push_back(200); - sizes.push_back(400); - sizes.push_back(800); - for (vector::iterator i=sizes.begin(); i!=sizes.end(); ++i) { breitling.start(); result += expand_subs(*i);