Searched refs:ExpectClose (Results 1 – 5 of 5) sorted by relevance
/external/ceres-solver/internal/ceres/ |
D | numeric_diff_test_utils.cc | 81 ExpectClose(x2[i], dydx1[5 * 0 + i], tolerance); // y1 in ExpectCostFunctionEvaluationIsNearlyCorrect() 82 ExpectClose(x1[i], dydx2[5 * 0 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 83 ExpectClose(2 * x2[i] * residuals[0], dydx1[5 * 1 + i], tolerance); // y2 in ExpectCostFunctionEvaluationIsNearlyCorrect() 84 ExpectClose(2 * x1[i] * residuals[0], dydx2[5 * 1 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 85 ExpectClose(0.0, dydx1[5 * 2 + i], tolerance); // y3 in ExpectCostFunctionEvaluationIsNearlyCorrect() 86 ExpectClose(2 * x2[i], dydx2[5 * 2 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 151 ExpectClose( x2[i] * cos(x1x2), dydx1[5 * 0 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 152 ExpectClose( x1[i] * cos(x1x2), dydx2[5 * 0 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 153 ExpectClose(-x2[i] * exp(-x1x2 / 10.) / 10., dydx1[5 * 1 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect() 154 ExpectClose(-x1[i] * exp(-x1x2 / 10.) / 10., dydx2[5 * 1 + i], tolerance); in ExpectCostFunctionEvaluationIsNearlyCorrect()
|
D | polynomial_test.cc | 181 ExpectClose(real(0), 42.42, kEpsilon); in TEST() 182 ExpectClose(real(1), 42.42, kEpsilon); in TEST() 183 ExpectClose(std::abs(imag(0)), 4.2, kEpsilon); in TEST() 184 ExpectClose(std::abs(imag(1)), 4.2, kEpsilon); in TEST() 185 ExpectClose(std::abs(imag(0) + imag(1)), 0.0, kEpsilon); in TEST()
|
D | test_util.h | 43 bool ExpectClose(double x, double y, double max_abs_relative_difference);
|
D | jet_test.cc | 64 ExpectClose(x.a, y.a, kTolerance); in ExpectJetsClose() 65 ExpectClose(x.v[0], y.v[0], kTolerance); in ExpectJetsClose() 66 ExpectClose(x.v[1], y.v[1], kTolerance); in ExpectJetsClose()
|
D | test_util.cc | 53 bool ExpectClose(double x, double y, double max_abs_relative_difference) { in ExpectClose() function
|