FIX: Fixint the bug with matrix exponential computation.

This commit is contained in:
Alexander Grigorievskiy 2015-10-21 15:47:03 +03:00
parent 3815b7d0b3
commit 3ef070a0dc

View file

@ -3281,7 +3281,7 @@ def matrix_exponent(M):
try:
Mexp = linalg.expm(M)
method = 1
except (FloatingPointError, ValueError) as e:
except (Exception,) as e:
Mexp = linalg.expm3(M)
method = 2
finally: