.. index:: pair: namespace; gpr::htst .. _doxid-namespacegpr_1_1htst: namespace gpr::htst =================== .. toctree:: :hidden: enum_gpr_htst_Kind.rst enum_gpr_htst_Mode.rst enum_gpr_htst_Source.rst enum_gpr_htst_Status.rst struct_gpr_htst_Half.rst struct_gpr_htst_Options.rst struct_gpr_htst_SearchRequest.rst class_gpr_htst_EvaluationRecord.rst Overview ~~~~~~~~ .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace htst { // typedefs typedef std::function :target:`GradientOracle`; typedef std::array`>, 3> :ref:`SearchHalves`; // enums enum :ref:`Kind`; enum :ref:`Mode`; enum :ref:`Source`; enum :ref:`Status`; // structs struct :ref:`Half`; struct :ref:`Options`; struct :ref:`SearchRequest`; // classes class :ref:`EvaluationRecord`; // global functions :ref:`Options` :ref:`geometryOptions`(const :ref:`Options`& options, const :ref:`AtomsConfiguration`& atoms, Eigen::Index dof); :ref:`Half` :ref:`fromHessian`(const Eigen::MatrixXd& hessian, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`Options`& options); :ref:`Half` :ref:`measured`(const :ref:`GradientOracle`& oracle, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`Options`& options); :ref:`Half` :ref:`surrogate`(:ref:`GaussianProcessRegression`& gp, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`Options`& options); :ref:`Half` :ref:`refined`(:ref:`GaussianProcessRegression`& gp, const :ref:`GradientOracle`& oracle, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`Options`& options); :ref:`SearchRequest`& :ref:`searchRequest`(); :ref:`SearchRequest` :ref:`takeSearchRequest`(); void :ref:`validateSearchRequest`(const :ref:`SearchRequest`& request, const :ref:`AtomsConfiguration`& atoms, Eigen::Index dof); :ref:`SearchHalves`& :ref:`lastSearchHalves`(); :ref:`Half` :ref:`searchHalf`(const :ref:`EvaluationRecord`& record, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`InputParameters`& params, const :ref:`AtomsConfiguration`& atoms, const :ref:`GradientOracle`& oracle, const :ref:`SearchRequest`& request, const Eigen::MatrixXd* stencil_hessian = nullptr); :ref:`InputParameters` :ref:`searchParameters`(); :ref:`Half` :ref:`minimumHalf`(const :ref:`EvaluationRecord`& record, const Eigen::VectorXd& x, const :ref:`AtomsConfiguration`& atoms, const :ref:`GradientOracle`& oracle, const :ref:`SearchRequest`& request); Eigen::MatrixXd :ref:`stencilHessian`(const Eigen::MatrixXd& positions, const Eigen::MatrixXd& gradients, double step); :ref:`SearchHalves` :ref:`bandHalves`(const :ref:`EvaluationRecord`& record, const Eigen::VectorXd& initial, const Eigen::VectorXd& final_state, const Eigen::VectorXd& climbing, const Eigen::MatrixXd& stencil_positions, const Eigen::MatrixXd& stencil_gradients, double stencil_step, const :ref:`InputParameters`& params, const :ref:`AtomsConfiguration`& atoms, const :ref:`GradientOracle`& oracle, const :ref:`SearchRequest`& request); double :target:`evAngstromAmuOmega`(); } // namespace htst .. _details-namespacegpr_1_1htst: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Typedefs -------- .. index:: pair: typedef; SearchHalves .. _doxid-namespacegpr_1_1htst_1a7953768d2a6f916c7e1c726c58cfb8cb: .. ref-code-block:: cpp :class: doxyrest-title-code-block typedef std::array`>, 3> SearchHalves Reactant, saddle and product, indexed as :ref:`gpr_htst_point_t `. An empty slot is a point the search did not compute. Global Functions ---------------- .. index:: pair: function; geometryOptions .. _doxid-namespacegpr_1_1htst_1ac214fabd279536898fe5e3ada7927e89: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Options` geometryOptions(const :ref:`Options`& options, const :ref:`AtomsConfiguration`& atoms, Eigen::Index dof) Frozen atoms anchor the system, so neither translations nor rotations are projected. A periodic cell keeps translations and drops rotations. This is the rule physicalCurvatureBasis already uses. When options.masses is empty and atoms carries atomic_masses, movingAtomicMasses validates and selects the moving atoms' masses. Apply geometry-derived projection and mass rules from ``atoms`` to ``options`` : frozen atoms disable translation and rotation projection, a periodic MIC cell disables rotation projection while keeping translations, and empty ``options.masses`` inherits ``atoms.atomic_masses``. .. index:: pair: function; fromHessian .. _doxid-namespacegpr_1_1htst_1a755997eab7aa9b665ac8782a07b0367c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Half` fromHessian(const Eigen::MatrixXd& hessian, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`Options`& options) The half of an exact Hessian in the units of its coordinates. .. index:: pair: function; measured .. _doxid-namespacegpr_1_1htst_1a1c0e9352f5bef0848cbfe2afc2ad1383: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Half` measured(const :ref:`GradientOracle`& oracle, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`Options`& options) Full central difference of the oracle gradient: 2 d calls. .. index:: pair: function; surrogate .. _doxid-namespacegpr_1_1htst_1a0883c16fb575a1efaa9c0d3693821d69: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Half` surrogate(:ref:`GaussianProcessRegression`& gp, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`Options`& options) The GP posterior-mean Hessian, with no oracle call. converged says whether every mode's estimated ln nu spread is under the tolerance. .. index:: pair: function; refined .. _doxid-namespacegpr_1_1htst_1a3baa8dfd92359ee7870b7b809e5e4bb6: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Half` refined(:ref:`GaussianProcessRegression`& gp, const :ref:`GradientOracle`& oracle, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`Options`& options) Start from the GP posterior-mean Hessian and replace it, direction by direction, by oracle Hessian actions (2 calls each) along the mode with the largest estimated ln nu spread, until ln_sum settles. An empty oracle is :ref:`surrogate() `. .. index:: pair: function; searchRequest .. _doxid-namespacegpr_1_1htst_1a0963de1f2180f155b42854eab3b8352c: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`SearchRequest`& searchRequest() This thread's request; it persists until it is assigned again. .. index:: pair: function; takeSearchRequest .. _doxid-namespacegpr_1_1htst_1a9940c460aeaeb7fecd2a80235fa89cde: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`SearchRequest` takeSearchRequest() Consume this thread's one-shot request masses and return the request for the search about to run. .. index:: pair: function; validateSearchRequest .. _doxid-namespacegpr_1_1htst_1a1ff19e7d5a28fce91f427ac846f1bbcd: .. ref-code-block:: cpp :class: doxyrest-title-code-block void validateSearchRequest(const :ref:`SearchRequest`& request, const :ref:`AtomsConfiguration`& atoms, Eigen::Index dof) Validate a search request's options and masses against ``atoms`` and ``dof`` before a search runs. An enabled request on coordinates that are not a whole number of atoms throws std::invalid_argument, masses given or not. .. index:: pair: function; lastSearchHalves .. _doxid-namespacegpr_1_1htst_1a663d9d1af6754a1e40ce1a4e33ea3208: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`SearchHalves`& lastSearchHalves() The halves of the last search on this thread. .. index:: pair: function; searchHalf .. _doxid-namespacegpr_1_1htst_1a82ef6389742674000d8756fad3b4af66: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Half` searchHalf(const :ref:`EvaluationRecord`& record, const Eigen::VectorXd& x, :ref:`Kind` kind, const :ref:`InputParameters`& params, const :ref:`AtomsConfiguration`& atoms, const :ref:`GradientOracle`& oracle, const :ref:`SearchRequest`& request, const Eigen::MatrixXd* stencil_hessian = nullptr) One half at x from a finished search. A measured stencil Hessian is used when given; otherwise MEASURED differentiates the oracle, and the other modes fit a GP with ``params`` on the record's evaluations nearest x. A half that cannot be formed is returned with :ref:`Status::Unavailable `. .. index:: pair: function; searchParameters .. _doxid-namespacegpr_1_1htst_1a149b67592ea166e9765bfbd5340a4e3f: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`InputParameters` searchParameters() The GP settings of gpr_model_config_defaults, used by searches that carry no GP configuration of their own. .. index:: pair: function; minimumHalf .. _doxid-namespacegpr_1_1htst_1a9657d6ea362d11b1b5e0b215132d1ba4: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`Half` minimumHalf(const :ref:`EvaluationRecord`& record, const Eigen::VectorXd& x, const :ref:`AtomsConfiguration`& atoms, const :ref:`GradientOracle`& oracle, const :ref:`SearchRequest`& request) The minimizer's half at its result x: searchHalf with :ref:`searchParameters() `. .. index:: pair: function; stencilHessian .. _doxid-namespacegpr_1_1htst_1a58ebf9828402016f80f73c252535304f: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd stencilHessian(const Eigen::MatrixXd& positions, const Eigen::MatrixXd& gradients, double step) Central-difference Hessian of an index stencil: the center, then the +h and -h displacements along each coordinate, as columns (or rows) of ``gradients``. Empty when the stencil does not have that shape. .. index:: pair: function; bandHalves .. _doxid-namespacegpr_1_1htst_1ac2e36dfc804546ba6a9a455f8c9d9c06: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`SearchHalves` bandHalves(const :ref:`EvaluationRecord`& record, const Eigen::VectorXd& initial, const Eigen::VectorXd& final_state, const Eigen::VectorXd& climbing, const Eigen::MatrixXd& stencil_positions, const Eigen::MatrixXd& stencil_gradients, double stencil_step, const :ref:`InputParameters`& params, const :ref:`AtomsConfiguration`& atoms, const :ref:`GradientOracle`& oracle, const :ref:`SearchRequest`& request) The halves of a band: its endpoints as minima, and the stencil center with its measured Hessian as the saddle when the search measured one, the climbing image otherwise.