- minor shortcut.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 13 Aug 2001 15:33:58 +0000 (15:33 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Mon, 13 Aug 2001 15:33:58 +0000 (15:33 +0000)
ginac/matrix.cpp

index 65dfd4dc601e9c228f7329d6e5e18f6c471c0718..31c7cbbfda47033e21c63b03e0a28bab9e427718 100644 (file)
@@ -961,7 +961,7 @@ matrix matrix::solve(const matrix & vars,
        // Gather some statistical information about the augmented matrix:
        bool numeric_flag = true;
        exvector::const_iterator r = aug.m.begin(), rend = aug.m.end();
-       while (r != rend) {
+       while (r!=rend && numeric_flag==true) {
                if (!r->info(info_flags::numeric))
                        numeric_flag = false;
                ++r;