X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftime_vandermonde.cpp;h=5a8263edef07fa08572b27c9e0dcf96868928162;hp=53094c89443256b27952f93399a5c1374ad5da94;hb=26e9e289dd5e4f0790ee687d56db41b95dfe98f7;hpb=286b0d93528e35957a50c51343e0b4a9bc623bce diff --git a/check/time_vandermonde.cpp b/check/time_vandermonde.cpp index 53094c89..5a8263ed 100644 --- a/check/time_vandermonde.cpp +++ b/check/time_vandermonde.cpp @@ -7,7 +7,7 @@ */ /* - * GiNaC Copyright (C) 1999-2011 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2017 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 @@ -58,7 +58,7 @@ static unsigned vandermonde_det(unsigned size) vanddet *= M(i,1) - M(j,1); if (expand(det - vanddet) != 0) { - clog << "Determaint of Vandermonde matrix " << endl + clog << "Determinant of Vandermonde matrix " << endl << "M==" << M << endl << "was miscalculated: det(M)==" << det << endl; ++result; @@ -73,15 +73,10 @@ unsigned time_vandermonde() cout << "timing determinant of univariate symbolic Vandermonde matrices" << flush; - vector sizes; + vector sizes = {8, 10, 12, 14}; vector times; timer swatch; - sizes.push_back(8); - sizes.push_back(10); - sizes.push_back(12); - sizes.push_back(14); - for (vector::iterator i=sizes.begin(); i!=sizes.end(); ++i) { int count = 1; swatch.start();