| 84 | } |
| 85 | |
| 86 | void AppendArrayToString(const int size, const double* x, string* result) { |
| 87 | for (int i = 0; i < size; ++i) { |
| 88 | if (x == NULL) { |
| 89 | StringAppendF(result, "Not Computed "); |
| 90 | } else { |
| 91 | if (x[i] == kImpossibleValue) { |
| 92 | StringAppendF(result, "Uninitialized "); |
| 93 | } else { |
| 94 | StringAppendF(result, "%12g ", x[i]); |
| 95 | } |
| 96 | } |
| 97 | } |
| 98 | } |
| 99 | |
| 100 | void MapValuesToContiguousRange(const int size, int* array) { |
| 101 | std::vector<int> unique_values(array, array + size); |
no test coverage detected