From 4e3f330d382e88e2ae180adcaea71ba5067cbf50 Mon Sep 17 00:00:00 2001 From: Richard Kreckel Date: Tue, 14 Aug 2001 18:13:33 +0000 Subject: [PATCH] - added another minor shortcut. --- ginac/matrix.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ginac/matrix.cpp b/ginac/matrix.cpp index 31c7cbbf..60869f09 100644 --- a/ginac/matrix.cpp +++ b/ginac/matrix.cpp @@ -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; -- 2.44.0