X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fcheck_lsolve.cpp;h=59264d9d1cb4cf23b173d438a72db6dca27529d5;hp=4d1f23730aeda0acb20b388ec522a692835acb75;hb=1566be23d91ed1311bee2071bdae9ef93d0b7cf6;hpb=f4ea690a3f118bf364190f0ef3c3f6d2ccdf6206 diff --git a/check/check_lsolve.cpp b/check/check_lsolve.cpp index 4d1f2373..59264d9d 100644 --- a/check/check_lsolve.cpp +++ b/check/check_lsolve.cpp @@ -4,7 +4,7 @@ * symbolic equations. */ /* - * 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,106 +23,197 @@ #include "checks.h" -static unsigned lsolve1(int size) +#if defined(HAVE_SSTREAM) +# include +#else +# include +#endif + +static unsigned check_matrix_solve(unsigned m, unsigned n, unsigned p, + unsigned degree) { - // A dense size x size matrix in dense univariate random polynomials - // of order 4. - unsigned result = 0; - symbol a("a"); - ex sol; - - // Create two dense linear matrices A and B where all entries are random - // univariate polynomials - matrix A(size,size), B(size,2), X(size,2); - for (int ro=0; ro x; + matrix X(n,p); + for (unsigned i=0; i a; + vector x; + for (unsigned i=0; i