class dimer::SphereRotation¶
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.
#include <gpr/dimer/SphereRotation.h>
class SphereRotation {
public:
// typedefs
typedef std::function<bool(gpr::Observation&)> Evaluator;
// methods
bool start(const gpr::Coord& center, const Eigen::VectorXd& gradient, double separation, const Eigen::MatrixXd& physical, std::size_t memory, const gpr::Observation& endpoint, const gpr::Observation* previous = nullptr);
bool step(const gpr::Coord& center, const gpr::Coord& orientation, const Eigen::VectorXd& gradient, double separation, const Eigen::MatrixXd& physical, std::size_t memory, const Evaluator& evaluate, const gpr::Observation* initial_endpoint, gpr::Coord& rotated, gpr::Observation& endpoint);
};