Skip to content

Commit 6f807e2

Browse files
committed
Fix numpy warnings
1 parent 89a7012 commit 6f807e2

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

quantecon/tests/test_lqnash.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,15 @@ def test_nnash(self):
9393
xbar = tfi.dot(aaa[:2, 2])
9494

9595
# Define answers from matlab. TODO: this is ghetto
96-
f1_ml = np.asarray(np.matrix("""\
97-
0.243666582208565, 0.027236062661951, -6.827882928738190;
98-
0.392370733875639, 0.139696450885998, -37.734107291009138"""))
99-
100-
f2_ml = np.asarray(np.matrix("""\
101-
0.027236062661951, 0.243666582208565, -6.827882928738186;
102-
0.139696450885998, 0.392370733875639, -37.734107291009131"""))
96+
f1_ml = np.array([
97+
[0.243666582208565, 0.027236062661951, -6.827882928738190],
98+
[0.392370733875639, 0.139696450885998, -37.734107291009138]
99+
])
100+
101+
f2_ml = np.array([
102+
[0.027236062661951, 0.243666582208565, -6.827882928738186],
103+
[0.139696450885998, 0.392370733875639, -37.734107291009131]
104+
])
103105

104106
xbar_ml = np.array([1.246871007582702, 1.246871007582685])
105107

0 commit comments

Comments
 (0)