13 : mass_(mass), time_integrator_(time_integrator), x_tilde_(time_integrator.x_tilde())
15 assert(mass.size() != 0);
16 assert(
x_tilde_.size() == mass.rows());
42 const Eigen::VectorXd tmp =
x -
x_tilde();
43 const double prod = tmp.transpose() *
mass_ * tmp;
44 const double energy = 0.5 * prod;
Implicit time integrator of a second order ODE (equivently a system of coupled first order ODEs).
virtual Eigen::VectorXd x_tilde() const =0
Compute the predicted solution to be used in the inertia term .
Eigen::SparseMatrix< double, Eigen::ColMajor > StiffnessMatrix