aboutsummaryrefslogtreecommitdiff
path: root/internal/ceres/solver_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'internal/ceres/solver_impl.h')
-rw-r--r--internal/ceres/solver_impl.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/ceres/solver_impl.h b/internal/ceres/solver_impl.h
index ebfb813..2b7ca3e 100644
--- a/internal/ceres/solver_impl.h
+++ b/internal/ceres/solver_impl.h
@@ -208,6 +208,13 @@ class SolverImpl {
ParameterBlockOrdering* parameter_block_ordering,
Program* program,
string* error);
+
+ // array contains a list of (possibly repeating) non-negative
+ // integers. Let us assume that we have constructed another array
+ // `p` by sorting and uniqueing the entries of array.
+ // CompactifyArray replaces each entry in "array" with its position
+ // in `p`.
+ static void CompactifyArray(vector<int>* array);
};
} // namespace internal