Lines Matching refs:derivatives
214 // TODO also check actual derivatives!
227 // TODO also check actual derivatives!
235 ap.x().derivatives() = Vector2f::UnitX();
236 ap.y().derivatives() = Vector2f::UnitY();
268 //set unit vectors for the derivative directions (partial derivatives of the input vector)
269 x(0).derivatives().resize(2);
270 x(0).derivatives().setZero();
271 x(0).derivatives()(0)= 1;
272 x(1).derivatives().resize(2);
273 x(1).derivatives().setZero();
274 x(1).derivatives()(1)=1;
276 //repeat partial derivatives for the inner AutoDiffScalar
277 x(0).value().derivatives() = VectorXd::Unit(2,0);
278 x(1).value().derivatives() = VectorXd::Unit(2,1);
282 x(0).derivatives()(idx).derivatives() = VectorXd::Zero(2);
283 x(1).derivatives()(idx).derivatives() = VectorXd::Zero(2);
288 VERIFY_IS_APPROX(y.value().derivatives()(0), y.derivatives()(0).value());
289 VERIFY_IS_APPROX(y.value().derivatives()(1), y.derivatives()(1).value());
290 VERIFY_IS_APPROX(y.value().derivatives()(0), s3*std::cos(s1*s3+s2*s4));
291 VERIFY_IS_APPROX(y.value().derivatives()(1), s4*std::cos(s1*s3+s2*s4));
292 VERIFY_IS_APPROX(y.derivatives()(0).derivatives(), -std::sin(s1*s3+s2*s4)*Vector2d(s3*s3,s4*s3));
293 VERIFY_IS_APPROX(y.derivatives()(1).derivatives(), -std::sin(s1*s3+s2*s4)*Vector2d(s3*s4,s4*s4));
296 VERIFY_IS_APPROX(z.derivatives()(0).derivatives(), Vector2d(0,1));
297 VERIFY_IS_APPROX(z.derivatives()(1).derivatives(), Vector2d(1,0));