.. index:: pair: class; dimer::SphereRotation .. _doxid-classdimer_1_1_sphere_rotation: class dimer::SphereRotation =========================== .. toctree:: :hidden: A persistent orientation solve at one measured midpoint. The objective is [E(R+h v)-E(reference)-g(R).(R+h v-reference)]/h^2 on v=Q u, where u is a unit vector. Its gradient is Q^T [g(R+h v)-g(R)]/h. .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class SphereRotation { public: // typedefs typedef std::function`&)> :target:`Evaluator`; // methods bool :target:`start`(const :ref:`gpr::Coord`& center, const Eigen::VectorXd& gradient, double separation, const Eigen::MatrixXd& physical, std::size_t memory, const :ref:`gpr::Observation`& endpoint, const :ref:`gpr::Observation`* previous = nullptr); bool :target:`step`(const :ref:`gpr::Coord`& center, const :ref:`gpr::Coord`& orientation, const Eigen::VectorXd& gradient, double separation, const Eigen::MatrixXd& physical, std::size_t memory, const :ref:`Evaluator`& evaluate, const :ref:`gpr::Observation`* initial_endpoint, :ref:`gpr::Coord`& rotated, :ref:`gpr::Observation`& endpoint); };