X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Ftime_lw_H.cpp;h=1621a6e117e69d7da938a69dfa4af0cd5bf7f885;hp=1bbe19d9e0d2ab21e23bd6bdf1fae50fafc6ee1d;hb=6e3e0fec75584b29ad6a18734e52d249dccc2a36;hpb=a54293fb33b252ca926cd1aba18faacb0f16688a diff --git a/check/time_lw_H.cpp b/check/time_lw_H.cpp index 1bbe19d9..1621a6e1 100644 --- a/check/time_lw_H.cpp +++ b/check/time_lw_H.cpp @@ -4,7 +4,7 @@ * Lewis and Michael Wester. */ /* - * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2001 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 @@ -23,47 +23,62 @@ #include "times.h" -static unsigned test(void) +static unsigned test(unsigned n) { - matrix h80(80,80); - - for (unsigned r=0; r<80; ++r) - for (unsigned c=0; c<80; ++c) - h80.set(r,c,numeric(1,r+c+1)); - ex det = h80.determinant(); - - if (abs(det.evalf()-numeric(".10097939769690107E-3789"))>numeric("1.E-3800")) { - clog << "determinant of 80x80 erroneously returned " << det << endl; - return 1; - } - return 0; + matrix hilbert(n,n); + + for (unsigned r=0; r