From: Richard Kreckel Date: Tue, 14 Aug 2001 18:13:33 +0000 (+0000) Subject: - added another minor shortcut. X-Git-Tag: release_0-9-3~13 X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?p=ginac.git;a=commitdiff_plain;h=4e3f330d382e88e2ae180adcaea71ba5067cbf50 - added another minor shortcut. --- 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;