Home
last modified time | relevance | path

Searched refs:jac (Results 1 – 8 of 8) sorted by relevance

/external/ceres-solver/internal/ceres/
Dcorrector_test.cc151 MatrixRef jac(jacobian, 3, 2); in TEST() local
191 g_jac = sqrt(rho[1]) * (jac - kAlpha / sq_norm * in TEST()
192 res * res.transpose() * jac); in TEST()
194 g_grad = rho[1] * jac.transpose() * res; in TEST()
195 g_hess = rho[1] * jac.transpose() * jac + in TEST()
196 2.0 * rho[2] * jac.transpose() * res * res.transpose() * jac; in TEST()
203 c_grad = jac.transpose() * res; in TEST()
204 c_hess = jac.transpose() * jac; in TEST()
207 ASSERT_NEAR((g_jac - jac).norm(), 0.0, 1e-10); in TEST()
219 MatrixRef jac(jacobian, 3, 2); in TEST() local
[all …]
Dconditioned_cost_function_test.cc72 jac[kTestCostFunctionSize * kTestCostFunctionSize], in TEST() local
80 jac[i * 2] = i * i; in TEST()
106 jacs[0] = jac; in TEST()
115 double actual = jac[i * kTestCostFunctionSize + j]; in TEST()
Dautodiff_test.cc57 T jac[M * N]) { // row-major. in SymmetricDiff()
89 RowMajorAccess(jac, M, N, i, j) = in SymmetricDiff()
/external/eigen/unsupported/test/
DNumericalDiff.cpp73 MatrixXd jac(15,3); in test_forward() local
85 numDiff.df(x, jac); in test_forward()
88 VERIFY_IS_APPROX(jac, actual_jac); in test_forward()
94 MatrixXd jac(15,3); in test_central() local
105 numDiff.df(x, jac); in test_central()
107 VERIFY_IS_APPROX(jac, actual_jac); in test_central()
/external/eigen/unsupported/Eigen/src/AutoDiff/
DAutoDiffJacobian.h57 JacobianType& jac = *_jac; in operator() local
60 ActiveValue av(jac.rows()); in operator()
63 for (Index j=0; j<jac.rows(); j++) in operator()
66 for (Index i=0; i<jac.cols(); i++) in operator()
71 for (Index i=0; i<jac.rows(); i++) in operator()
74 jac.row(i) = av[i].derivatives(); in operator()
DAutoDiffVector.h67 inline AutoDiffVector(const ValueType& values, const JacobianType& jac) in AutoDiffVector() argument
68 : m_values(values), m_jacobian(jac) in AutoDiffVector()
/external/eigen/unsupported/Eigen/
DAdolcForward130 JacobianType& jac = *_jac;
133 ActiveValue av(jac.rows());
135 for (int j=0; j<jac.cols(); j++)
136 for (int i=0; i<jac.cols(); i++)
141 for (int i=0; i<jac.rows(); i++)
144 for (int j=0; j<jac.cols(); j++)
145 jac.coeffRef(i,j) = av[i].getADValue(j);
/external/eigen/unsupported/Eigen/src/NumericalDiff/
DNumericalDiff.h64 int df(const InputType& _x, JacobianType &jac) const in df() argument
104 jac.col(j) = (val2-val1)/h; in df()
112 jac.col(j) = (val2-val1)/(2*h); in df()