| 105 | |
| 106 | template <typename Real> |
| 107 | void 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 | |
| 123 | template <typename Real> |
| 124 | void HVectorBase<Real>::reIndex() { |