MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / AppendArrayToString

Function AppendArrayToString

libs/ceres/internal/ceres/array_utils.cc:86–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84}
85
86void 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
100void MapValuesToContiguousRange(const int size, int* array) {
101 std::vector<int> unique_values(array, array + size);

Callers 3

EvaluationToStringFunction · 0.85
IsFeasibleMethod · 0.85

Calls 1

StringAppendFFunction · 0.70

Tested by

no test coverage detected