X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Ftime_toeplitz.cpp;h=87284c0f9eeb773ce0b3b28b4fe84a11b7eb71b7;hb=afb0ccaa49a0cca001d854594e09125a58434123;hp=2987dba358d4c2b16d39f0a8863040dda6e7b120;hpb=47ecb72dce5ea9c917d1e1e77863c45a8b2b1bba;p=ginac.git diff --git a/check/time_toeplitz.cpp b/check/time_toeplitz.cpp index 2987dba3..87284c0f 100644 --- a/check/time_toeplitz.cpp +++ b/check/time_toeplitz.cpp @@ -6,7 +6,7 @@ */ /* - * 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 @@ -61,7 +61,7 @@ static unsigned toeplitz_det(unsigned size) // dirty consistency check of result: if (!tdet.subs(a==0).subs(b==0).is_zero()) { - clog << "Determaint of Toeplitz matrix " << endl + clog << "Determinant of Toeplitz matrix " << endl << "M==" << M << endl << "was miscalculated: det(M)==" << tdet << endl; ++result; @@ -76,15 +76,10 @@ unsigned time_toeplitz() cout << "timing determinant of polyvariate symbolic Toeplitz matrices" << flush; - vector sizes; + vector sizes = {7, 8, 9, 10}; vector times; timer longines; - sizes.push_back(7); - sizes.push_back(8); - sizes.push_back(9); - sizes.push_back(10); - for (vector::iterator i=sizes.begin(); i!=sizes.end(); ++i) { int count = 1; longines.start();