.. index:: pair: struct; gpr::EnergyAndGradient .. _doxid-structgpr_1_1_energy_and_gradient: struct gpr::EnergyAndGradient ============================= .. toctree:: :hidden: Structure of energy and gradient stored in Eigen-compatible form. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct EnergyAndGradient { // fields double& :target:`energy`; Eigen::VectorXd& :target:`gradient`; // construction :target:`EnergyAndGradient`(double& e, Eigen::VectorXd& g); };