Port Ceres to Windows
This is a preliminary, but full, port of Ceres to Windows.
Currently all tests compile and run, with only system_test
failing to work correctly due to a path issue.
Change-Id: I4152c1588bf51ffd7f4d9401ef9759f5d28c299c
diff --git a/internal/ceres/autodiff_cost_function_test.cc b/internal/ceres/autodiff_cost_function_test.cc
index 2f44595..33e576f 100644
--- a/internal/ceres/autodiff_cost_function_test.cc
+++ b/internal/ceres/autodiff_cost_function_test.cc
@@ -44,15 +44,13 @@
template <typename T>
bool operator()(const T* const x, const T* const y,
T* cost) const {
- cost[0] =
- x[0] * y[0] + x[1] * y[1] - T(a_);
+ cost[0] = x[0] * y[0] + x[1] * y[1] - T(a_);
return true;
}
private:
double a_;
};
-
TEST(AutoDiffResidualAndJacobian, BilinearDifferentiationTest) {
CostFunction* cost_function =
new AutoDiffCostFunction<BinaryScalarCost, 1, 2, 2>(
@@ -72,7 +70,6 @@
jacobians[0] = new double[2];
jacobians[1] = new double[2];
-
double residuals = 0.0;
cost_function->Evaluate(parameters, &residuals, NULL);