mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-30 00:50:37 +08:00
Fix operator= ambiguity on some versions of Clang.
- Earlier versions of Clang (up to at least v3.0) throw an ambiguous operator= error in this assignment. Variations on this error have cropped up occassionally in some other projects (e.g. PCL). Change-Id: I73a632c43528eb69840ce697c55d9afc5f3d8e59
This commit is contained in:
@@ -203,7 +203,7 @@ class DynamicNumericDiffCostFunction : public CostFunction {
|
||||
// 1. Store residuals for the forward part.
|
||||
// 2. Subtract residuals for the backward (or 0) part.
|
||||
// 3. Divide out the run.
|
||||
parameter_jacobian.col(j) = residuals;
|
||||
parameter_jacobian.col(j).matrix() = residuals;
|
||||
|
||||
double one_over_h = 1 / step_size(j);
|
||||
if (method == CENTRAL) {
|
||||
|
||||
Reference in New Issue
Block a user