Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion lectures/opt_transport.md
Original file line number Diff line number Diff line change
Expand Up @@ -681,10 +681,12 @@ X
Sure enough, we have the same solution and the same cost

```{code-cell} ipython3
total_cost = np.sum(X * C)
total_cost = np.vdot(X, C)
total_cost
```

Here we use [np.vdot](https://numpy.org/doc/stable/reference/generated/numpy.vdot.html) for the trace inner product of X and C

### A Larger Application

Now let's try using the same package on a slightly larger application.
Expand Down
Loading