Skip to content

Commit 8745cbd

Browse files
committed
markov test update
1 parent 283780a commit 8745cbd

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

quantecon/markov/tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,12 +225,12 @@ def test_left_eigen_vec(self):
225225
stationary_distributions = self.stationary
226226

227227
if self.n_stat_dists == 1:
228-
assert_allclose(np.dot(stationary_distributions, mc.P),
228+
assert_allclose(stationary_distributions @ mc.P,
229229
stationary_distributions, atol=self.TOL)
230230
else:
231231
for i in range(self.n_stat_dists):
232232
curr_v = stationary_distributions[i, :]
233-
assert_allclose(np.dot(curr_v, mc.P), curr_v, atol=self.TOL)
233+
assert_allclose(curr_v @ mc.P, curr_v, atol=self.TOL)
234234

235235

236236
def test_simulate_shape():

quantecon/markov/tests/test_gth_solve.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ def __call__(self, x):
108108

109109
class StationaryDistLeftEigenVec(AddDescription):
110110
def __call__(self, A, x):
111-
assert_allclose(np.dot(x, A), x, atol=TOL)
111+
assert_allclose(x @ A, x, atol=TOL)
112112

113113

114114
class StationaryDistEqualToKnown(AddDescription):

0 commit comments

Comments
 (0)