X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftime_gammaseries.cpp;h=cf06b133dad473798234d9637af566e48d07c7c4;hp=1f89e1644dcea6a2bbb1c9c5f593635bf82eaad5;hb=627de8efe53389269082bc0c908a10e7e09b9207;hpb=286b0d93528e35957a50c51343e0b4a9bc623bce diff --git a/check/time_gammaseries.cpp b/check/time_gammaseries.cpp index 1f89e164..cf06b133 100644 --- a/check/time_gammaseries.cpp +++ b/check/time_gammaseries.cpp @@ -3,7 +3,7 @@ * Some timings on series expansion of the Gamma function around a pole. */ /* - * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2020 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 @@ -55,15 +55,10 @@ unsigned time_gammaseries() cout << "timing Laurent series expansion of Gamma function" << flush; - vector sizes; + vector sizes = {20, 25, 30, 35}; vector times; timer omega; - sizes.push_back(20); - sizes.push_back(25); - sizes.push_back(30); - sizes.push_back(35); - for (vector::iterator i=sizes.begin(); i!=sizes.end(); ++i) { omega.start(); result += tgammaseries(*i);