Lines Matching full:costs
185 // costs.
191 PBQPRAGraph::RawMatrix costs(vRdAllowed->size() + 1,
198 costs[i + 1][j + 1] = std::numeric_limits<PBQP::PBQPNum>::infinity();
200 costs[i + 1][j + 1] = haveSameParity(pRd, pRa) ? 0.0 : 1.0;
203 G.addEdge(node1, node2, std::move(costs));
213 PBQPRAGraph::RawMatrix costs(G.getEdgeCosts(edge));
223 if (costs[i + 1][j + 1] !=
225 costs[i + 1][j + 1] > sameParityMax)
226 sameParityMax = costs[i + 1][j + 1];
234 if (sameParityMax > costs[i + 1][j + 1])
235 costs[i + 1][j + 1] = sameParityMax + 1.0;
238 G.updateEdgeCosts(edge, std::move(costs));
290 PBQP::Matrix costs(G.getEdgeCosts(edge));
300 if (costs[i + 1][j + 1] !=
302 costs[i + 1][j + 1] > sameParityMax)
303 sameParityMax = costs[i + 1][j + 1];
311 if (sameParityMax > costs[i + 1][j + 1])
312 costs[i + 1][j + 1] = sameParityMax + 1.0;
315 G.updateEdgeCosts(edge, std::move(costs));