| 122 | |
| 123 | template <typename Real> |
| 124 | void HVectorBase<Real>::reIndex() { |
| 125 | /* |
| 126 | * Possibly determine the indices from scratch by passing through |
| 127 | * the array |
| 128 | */ |
| 129 | // Don't do it if there are relatively few nonzeros |
| 130 | if (count >= 0 && count <= size * 0.1) return; |
| 131 | count = 0; |
| 132 | for (HighsInt i = 0; i < size; i++) |
| 133 | if ((double)array[i]) index[count++] = i; |
| 134 | } |
| 135 | |
| 136 | template <typename Real> |
| 137 | template <typename FromReal> |