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

Method pack

highs/util/HVectorBase.cpp:107–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105
106template <typename Real>
107void HVectorBase<Real>::pack() {
108 /*
109 * Packing (if packFlag set): Pack values/indices in Vector.array
110 * into packValue/Index
111 */
112 if (!packFlag) return;
113 packFlag = false;
114 packCount = 0;
115 for (HighsInt i = 0; i < count; i++) {
116 const HighsInt ipack = index[i];
117 packIndex[packCount] = ipack;
118 packValue[packCount] = array[ipack];
119 packCount++;
120 }
121}
122
123template <typename Real>
124void HVectorBase<Real>::reIndex() {

Callers 4

ftranLMethod · 0.80
btranLMethod · 0.80
ftranUMethod · 0.80
btranUMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected