- added another minor shortcut.
authorRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Tue, 14 Aug 2001 18:13:33 +0000 (18:13 +0000)
committerRichard Kreckel <Richard.Kreckel@uni-mainz.de>
Tue, 14 Aug 2001 18:13:33 +0000 (18:13 +0000)
ginac/matrix.cpp

index 31c7cbb..60869f0 100644 (file)
@@ -850,7 +850,7 @@ ex matrix::charpoly(const symbol & lambda) const
        
        bool numeric_flag = true;
        exvector::const_iterator r = m.begin(), rend = m.end();
-       while (r != rend) {
+       while (r!=rend && numeric_flag==true) {
                if (!r->info(info_flags::numeric))
                        numeric_flag = false;
                ++r;