mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-09 20:12:38 +02:00
FIX: Fixint the bug with matrix exponential computation.
This commit is contained in:
parent
3815b7d0b3
commit
3ef070a0dc
1 changed files with 1 additions and 1 deletions
|
|
@ -3281,7 +3281,7 @@ def matrix_exponent(M):
|
||||||
try:
|
try:
|
||||||
Mexp = linalg.expm(M)
|
Mexp = linalg.expm(M)
|
||||||
method = 1
|
method = 1
|
||||||
except (FloatingPointError, ValueError) as e:
|
except (Exception,) as e:
|
||||||
Mexp = linalg.expm3(M)
|
Mexp = linalg.expm3(M)
|
||||||
method = 2
|
method = 2
|
||||||
finally:
|
finally:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue