X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=blobdiff_plain;f=ginac%2Fmatrix.cpp;h=e15feb6d71ee2db2dafff99014327ac483fdca89;hp=97b473628464e498a233c691e2d0b724f34e7491;hb=5184d67c0ec1056ac039419e08558632793a4e2c;hpb=b2613f4b583961c3b3fe46dc6ddd2bd1f1b2684c diff --git a/ginac/matrix.cpp b/ginac/matrix.cpp index 97b47362..e15feb6d 100644 --- a/ginac/matrix.cpp +++ b/ginac/matrix.cpp @@ -726,6 +726,12 @@ matrix matrix::fraction_free_elim(const matrix & vars, matrix a(*this); // make a copy of the matrix matrix b(rhs); // make a copy of the rhs vector + + /* + cout << "before" << endl; + cout << "a=" << a << endl; + cout << "b=" << b << endl; + */ // given an m x n matrix a, reduce it to upper echelon form unsigned m=a.row; @@ -793,6 +799,12 @@ matrix matrix::fraction_free_elim(const matrix & vars, zero_in_last_row=zero_in_this_row; } #endif // def DO_GINAC_ASSERT + + /* + cout << "after" << endl; + cout << "a=" << a << endl; + cout << "b=" << b << endl; + */ // assemble solution matrix sol(n,1); @@ -833,6 +845,8 @@ matrix matrix::fraction_free_elim(const matrix & vars, cout << vars.ffe_get(c,1) << "->" << sol.ffe_get(c,1) << endl; } */ + + // cout << "sol=" << sol << endl; #ifdef DO_GINAC_ASSERT // test solution with echelon matrix