X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftime_toeplitz.cpp;h=9bbdf043ec272d0b51186455d0cddac65e3a51aa;hp=ddb5746ecb8e210cd4057ecc4e14f4e6ecabb9d9;hb=69815a366be5ca81185386d94268d7e7dcce94e3;hpb=761d1597532504762c1f9b438c7727c4f74d7da3 diff --git a/check/time_toeplitz.cpp b/check/time_toeplitz.cpp index ddb5746e..9bbdf043 100644 --- a/check/time_toeplitz.cpp +++ b/check/time_toeplitz.cpp @@ -6,7 +6,7 @@ */ /* - * GiNaC Copyright (C) 1999-2017 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 @@ -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();