MCPcopy Create free account
hub / github.com/ceres-solver/ceres-solver / AppendArrayToString

Function AppendArrayToString

internal/ceres/array_utils.cc:77–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77void AppendArrayToString(const int64_t size,
78 const double* x,
79 std::string* result) {
80 for (int64_t i = 0; i < size; ++i) {
81 if (x == nullptr) {
82 StringAppendF(result, "Not Computed ");
83 } else {
84 if (x[i] == kImpossibleValue) {
85 StringAppendF(result, "Uninitialized ");
86 } else {
87 StringAppendF(result, "%12g ", x[i]);
88 }
89 }
90 }
91}
92
93void MapValuesToContiguousRange(const int64_t size, int* array) {
94 std::vector<int> unique_values(array, array + size);

Callers 3

EvaluationToStringFunction · 0.85
IsFeasibleMethod · 0.85

Calls 1

StringAppendFFunction · 0.85

Tested by

no test coverage detected