Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions deps/eigen
Submodule eigen added at d71c30
2 changes: 1 addition & 1 deletion ot/lp/EMD_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ inline void extract_dense_full_support(
// Only write non-zero entries. G is already zero-initialized in Python.
const int64_t arc_total = net.arcNum();
for (int64_t a = 0; a < arc_total; ++a) {
const double flow = net._flow[a];
const double flow = net.flowByArcId(a);
if (flow == 0.0) continue;
const int64_t d_idx = arc_total - a - 1; // row-major index in D/G
*cost += flow * D[d_idx];
Expand Down
Loading
Loading