git://www.ginac.de
/
ginac.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc25109
)
- added another minor shortcut.
author
Richard Kreckel
<Richard.Kreckel@uni-mainz.de>
Tue, 14 Aug 2001 18:13:33 +0000
(18:13 +0000)
committer
Richard Kreckel
<Richard.Kreckel@uni-mainz.de>
Tue, 14 Aug 2001 18:13:33 +0000
(18:13 +0000)
ginac/matrix.cpp
patch
|
blob
|
history
diff --git
a/ginac/matrix.cpp
b/ginac/matrix.cpp
index
31c7cbb
..
60869f0
100644
(file)
--- 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;