Lines Matching full:costs
179 // costs.
185 PBQPRAGraph::RawMatrix costs(vRdAllowed->size() + 1,
192 costs[i + 1][j + 1] = std::numeric_limits<PBQP::PBQPNum>::infinity();
194 costs[i + 1][j + 1] = haveSameParity(pRd, pRa) ? 0.0 : 1.0;
197 G.addEdge(node1, node2, std::move(costs));
207 PBQPRAGraph::RawMatrix costs(G.getEdgeCosts(edge));
217 if (costs[i + 1][j + 1] !=
219 costs[i + 1][j + 1] > sameParityMax)
220 sameParityMax = costs[i + 1][j + 1];
228 if (sameParityMax > costs[i + 1][j + 1])
229 costs[i + 1][j + 1] = sameParityMax + 1.0;
232 G.updateEdgeCosts(edge, std::move(costs));
284 PBQP::Matrix costs(G.getEdgeCosts(edge));
294 if (costs[i + 1][j + 1] !=
296 costs[i + 1][j + 1] > sameParityMax)
297 sameParityMax = costs[i + 1][j + 1];
305 if (sameParityMax > costs[i + 1][j + 1])
306 costs[i + 1][j + 1] = sameParityMax + 1.0;
309 G.updateEdgeCosts(edge, std::move(costs));