MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / initializeIndexMaps

Method initializeIndexMaps

highs/presolve/HighsPostsolveStack.cpp:20–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18namespace presolve {
19
20void HighsPostsolveStack::initializeIndexMaps(HighsInt numRow,
21 HighsInt numCol) {
22 origNumRow = numRow;
23 origNumCol = numCol;
24
25 origRowIndex.resize(numRow);
26 std::iota(origRowIndex.begin(), origRowIndex.end(), 0);
27
28 origColIndex.resize(numCol);
29 std::iota(origColIndex.begin(), origColIndex.end(), 0);
30
31 linearlyTransformable.resize(numCol, true);
32}
33
34void HighsPostsolveStack::compressIndexMaps(
35 const std::vector<HighsInt>& newRowIndex,

Callers 4

initMethod · 0.80
initMethod · 0.80
debugMethod · 0.80

Calls 3

resizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected