X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=check%2Fcheck_matrices.cpp;h=cd6c92e80af1e45343cc72f1b8bc2f98b3346093;hb=8b3f3cb2d72aa91b9a635f63d5a4c9a24afa5b00;hp=5721a942921e3c60d77f6ded561896ec70b0ce62;hpb=a43a2fe7d9df31529647c66dcfb9cad544ffd369;p=ginac.git diff --git a/check/check_matrices.cpp b/check/check_matrices.cpp index 5721a942..cd6c92e8 100644 --- a/check/check_matrices.cpp +++ b/check/check_matrices.cpp @@ -3,7 +3,7 @@ * Here we test manipulations on GiNaC's symbolic matrices. */ /* - * 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 @@ -22,49 +22,196 @@ #include "checks.h" -// determinants of some sparse symbolic size x size matrices -static unsigned matrix_determinants(void) +/* determinants of some sparse symbolic matrices with coefficients in + * an integral domain. */ +static unsigned integdom_matrix_determinants(void) { - unsigned result = 0; - symbol a("a"); + unsigned result = 0; + symbol a("a"); + + for (unsigned size=3; size<20; ++size) { + matrix A(size,size); + // populate one element in each row: + for (unsigned r=0; r