X-Git-Url: https://ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Ftime_lw_IJKL.cpp;h=b2d0f2c9693dd92d61b4993e42c34351c75366a2;hb=a4b348a2ec489af31dfabcfab96ad8a7e7658e3e;hp=62f69b662ba98a2d93c5775174e3c2b7c21488da;hpb=8b0c2741cf5b9b17025302f96ee7d1a451bbfbb0;p=ginac.git diff --git a/check/time_lw_IJKL.cpp b/check/time_lw_IJKL.cpp index 62f69b66..b2d0f2c9 100644 --- a/check/time_lw_IJKL.cpp +++ b/check/time_lw_IJKL.cpp @@ -4,7 +4,7 @@ * by Robert H. Lewis and Michael Wester. */ /* - * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2008 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 @@ -18,75 +18,79 @@ * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#include "times.h" +#include +#include +#include "ginac.h" +#include "timer.h" +using namespace std; +using namespace GiNaC; static unsigned test(unsigned n) { - unsigned result = 0; - timer cartier; - char name = (n==40?'I':(n==70?'K':'?')); - - cout << "timing Lewis-Wester test " << name - << " (invert rank " << n << " Hilbert)" << flush; - clog << "-------Lewis-Wester test " << name - << " (invert rank " << n << " Hilbert)" << endl; - - // Create a rank n Hilbert matrix: - matrix H(n,n); - for (unsigned r=0; r