Closed
Description
On my laptop, I got the following output when running the tests this morning:
======================================================================
ERROR: quantecon.tests.test_ricatti.dare_test_tjm_2
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pablo/.local/opt/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/pablo/Programming/quantecon/quant-econ/quantecon/tests/test_ricatti.py", line 50, in dare_test_tjm_2
X = solve_discrete_riccati(A, B, Q, R)
File "/home/pablo/Programming/quantecon/quant-econ/quantecon/matrix_eqn.py", line 162, in solve_discrete_riccati
Q_tilde = - Q + dot(C.T, solve(Z, C + gamma * BTA)) + gamma * I
File "/home/pablo/.local/opt/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 381, in solve
r = gufunc(a, b, signature=signature, extobj=extobj)
File "/home/pablo/.local/opt/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 90, in _raise_linalgerror_singular
raise LinAlgError("Singular matrix")
LinAlgError: Singular matrix
======================================================================
ERROR: quantecon.tests.test_ricatti.dare_test_tjm_3
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/pablo/.local/opt/anaconda/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
self.test(*self.arg)
File "/home/pablo/Programming/quantecon/quant-econ/quantecon/tests/test_ricatti.py", line 66, in dare_test_tjm_3
X = solve_discrete_riccati(A, B, Q, R)
File "/home/pablo/Programming/quantecon/quant-econ/quantecon/matrix_eqn.py", line 162, in solve_discrete_riccati
Q_tilde = - Q + dot(C.T, solve(Z, C + gamma * BTA)) + gamma * I
File "/home/pablo/.local/opt/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 381, in solve
r = gufunc(a, b, signature=signature, extobj=extobj)
File "/home/pablo/.local/opt/anaconda/lib/python2.7/site-packages/numpy/linalg/linalg.py", line 90, in _raise_linalgerror_singular
raise LinAlgError("Singular matrix")
LinAlgError: Singular matrix
The problem disappeared when I upgraded Anaconda, and removed the MKL and accelerate packages (since I don't have a license anymore):
The following packages will be REMOVED:
accelerate: 1.5.1-np18py27_p0
mkl: 11.1-np18py27_p2
The following packages will be UPDATED:
numexpr: 2.3.1-np19py27_p0 [mkl] --> 2.3.1-np19py27_0
numpy: 1.9.0-py27_p0 [mkl] --> 1.9.0-py27_0
scikit-learn: 0.15.2-np19py27_p0 [mkl] --> 0.15.2-np19py27_0
scipy: 0.14.0-np19py27_p0 [mkl] --> 0.14.0-np19py27_0
Has anybody run the tests with the accelerate/mkl packages ?