Lines Matching defs:costs
177 // costs.
183 PBQPRAGraph::RawMatrix costs(vRdAllowed->size() + 1,
190 costs[i + 1][j + 1] = std::numeric_limits<PBQP::PBQPNum>::infinity();
192 costs[i + 1][j + 1] = haveSameParity(pRd, pRa) ? 0.0 : 1.0;
195 G.addEdge(node1, node2, std::move(costs));
205 PBQPRAGraph::RawMatrix costs(G.getEdgeCosts(edge));
215 if (costs[i + 1][j + 1] !=
217 costs[i + 1][j + 1] > sameParityMax)
218 sameParityMax = costs[i + 1][j + 1];
226 if (sameParityMax > costs[i + 1][j + 1])
227 costs[i + 1][j + 1] = sameParityMax + 1.0;
230 G.updateEdgeCosts(edge, std::move(costs));
282 PBQP::Matrix costs(G.getEdgeCosts(edge));
292 if (costs[i + 1][j + 1] !=
294 costs[i + 1][j + 1] > sameParityMax)
295 sameParityMax = costs[i + 1][j + 1];
303 if (sameParityMax > costs[i + 1][j + 1])
304 costs[i + 1][j + 1] = sameParityMax + 1.0;
307 G.updateEdgeCosts(edge, std::move(costs));