X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=check%2Fcheck_matrices.cpp;h=91f4b5da4b64ace42691890fbf614f9268d0a467;hp=71893bb129ff5cbe6950308ef06b7fd7d4bf2d8b;hb=2478df378bbdbae452288eb3aa16928e168b7fc2;hpb=d6dd9e5350d479533b319dd1dfedaa2467627fe3 diff --git a/check/check_matrices.cpp b/check/check_matrices.cpp index 71893bb1..91f4b5da 100644 --- a/check/check_matrices.cpp +++ b/check/check_matrices.cpp @@ -1,9 +1,11 @@ /** @file check_matrices.cpp * - * Here we test manipulations on GiNaC's symbolic matrices. */ + * Here we test manipulations on GiNaC's symbolic matrices. They are a + * well-tried resource for cross-checking the underlying symbolic + * manipulations. */ /* - * GiNaC Copyright (C) 1999-2000 Johannes Gutenberg University Mainz, Germany + * GiNaC Copyright (C) 1999-2003 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,80 +24,196 @@ #include "checks.h" -// determinants of some sparse symbolic size x size matrices over -// an integral domain. -static unsigned integdom_matrix_determinants(void) +/* determinants of some sparse symbolic matrices with coefficients in + * an integral domain. */ +static unsigned integdom_matrix_determinants() { - unsigned result = 0; - symbol a("a"); - - for (int size=3; size<17; ++size) { - matrix A(size,size); - for (int r=0; r