X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fcheck_matrices.cpp;h=465c244ca1a00f6a0733473d5bd2e872c109e636;hp=ec7efefc523132fae8b701c2864a674d26c3927e;hb=7e7beee2c946694130a484c923f6af8391867495;hpb=f4ea690a3f118bf364190f0ef3c3f6d2ccdf6206 diff --git a/check/check_matrices.cpp b/check/check_matrices.cpp index ec7efefc..465c244c 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-2002 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