Skip to content

Commit ee1f88f

Browse files
authored
Replace np.sum(a * b) with np.vdot(a, b)
1 parent 3d9f478 commit ee1f88f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lectures/opt_transport.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ X
681681
Sure enough, we have the same solution and the same cost
682682
683683
```{code-cell} ipython3
684-
total_cost = np.sum(X * C)
684+
total_cost = np.vdot(X, C)
685685
total_cost
686686
```
687687

0 commit comments

Comments
 (0)