Skip to content

Commit 4e5a722

Browse files
suda-yugammcky
andauthored
Replace np.sum(a * b) with a @ b (#211)
Co-authored-by: Matt McKay <[email protected]>
1 parent 02e5bb2 commit 4e5a722

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/calvo_abreu.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def abreu_plan(clq, T=1000, T_A=10, μ_bar=0.1, T_Plot=20):
555555
# Calculate implied stick θ series
556556
discount = (clq.α / (1 + clq.α)) ** np.arange(T)
557557
clq.θ_A = np.array([
558-
1 / (clq.α + 1) * np.sum(clq.μ_A[t:] * discount[:T - t])
558+
1 / (clq.α + 1) * (clq.μ_A[t:] @ discount[:T - t])
559559
for t in range(T)
560560
])
561561

0 commit comments

Comments
 (0)