Skip to content

Commit d67709c

Browse files
authored
Replace np.sum(a * b) with a @ b
1 parent f63761a commit d67709c

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)