Classes | |
| class | EvaluationRecord |
| struct | Half |
| struct | Options |
| struct | SearchRequest |
Typedefs | |
| using | GradientOracle |
| using | SearchHalves = std::array<std::optional<Half>, 3> |
Enumerations | |
| enum class | Kind { Minimum = 0 , Saddle = 1 } |
| enum class | Status { Ok = 0 , NotConverged = 1 , WrongIndex = 2 , Unavailable = 3 } |
| enum class | Source { Refined = 0 , Measured = 1 , Stencil = 2 , Surrogate = 3 , Conditioned = 4 } |
| enum class | Mode { Refined = 0 , Measured = 1 , Surrogate = 2 } |
| Which Hessian a search's half is built from. More... | |
Functions | |
| Options | geometryOptions (const Options &options, const AtomsConfiguration &atoms, Eigen::Index dof) |
| Half | fromHessian (const Eigen::MatrixXd &hessian, const Eigen::VectorXd &x, Kind kind, const Options &options) |
| The half of an exact Hessian in the units of its coordinates. | |
| Half | measured (const GradientOracle &oracle, const Eigen::VectorXd &x, Kind kind, const Options &options) |
| Full central difference of the oracle gradient: 2 d calls. | |
| Half | surrogate (GaussianProcessRegression &gp, const Eigen::VectorXd &x, Kind kind, const Options &options) |
| Half | refined (GaussianProcessRegression &gp, const GradientOracle &oracle, const Eigen::VectorXd &x, Kind kind, const Options &raw_options) |
| SearchRequest & | searchRequest () |
| This thread's request; it persists until it is assigned again. | |
| SearchRequest | takeSearchRequest () |
| void | validateSearchRequest (const SearchRequest &request, const AtomsConfiguration &atoms, Eigen::Index dof) |
| SearchHalves & | lastSearchHalves () |
| The halves of the last search on this thread. | |
| Half | searchHalf (const EvaluationRecord &record, const Eigen::VectorXd &x, Kind kind, const InputParameters ¶ms, const AtomsConfiguration &atoms, const GradientOracle &oracle, const SearchRequest &request, const Eigen::MatrixXd *stencil_hessian) |
| InputParameters | searchParameters () |
| Half | minimumHalf (const EvaluationRecord &record, const Eigen::VectorXd &x, const AtomsConfiguration &atoms, const GradientOracle &oracle, const SearchRequest &request) |
| The minimizer's half at its result x: searchHalf with searchParameters(). | |
| Eigen::MatrixXd | stencilHessian (const Eigen::MatrixXd &positions, const Eigen::MatrixXd &gradients, double step) |
| SearchHalves | bandHalves (const 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 InputParameters ¶ms, const AtomsConfiguration &atoms, const GradientOracle &oracle, const SearchRequest &request) |
| constexpr double | evAngstromAmuOmega () noexcept |
Definition at line 114 of file HarmonicPrefactor.h.
| using gpr::htst::SearchHalves = std::array<std::optional<Half>, 3> |
Reactant, saddle and product, indexed as gpr_htst_point_t. An empty slot is a point the search did not compute.
Definition at line 173 of file HarmonicPrefactor.h.
|
strong |
Harmonic transition-state theory in the Vineyard form: nu = prod_i nu_i(minimum) / prod'_i nu_i(saddle), nu_i = omega_i / (2 pi), omega_i^2 the eigenvalues of the mass-weighted Hessian on the vibrational complement of the projected rigid motions, the primed product over the real saddle modes. Each stationary point contributes one half, ln_sum = sum_i ln nu_i over its real modes, so a search that finds one point reports its half and ln nu = ln_sum(minimum) - ln_sum(saddle).
| Enumerator | |
|---|---|
| Minimum | |
| Saddle | |
Definition at line 29 of file HarmonicPrefactor.h.
|
strong |
Which Hessian a search's half is built from.
| Enumerator | |
|---|---|
| Refined | |
| Measured | |
| Surrogate | |
Definition at line 145 of file HarmonicPrefactor.h.
|
strong |
| Enumerator | |
|---|---|
| Refined | |
| Measured | |
| Stencil | |
| Surrogate | |
| Conditioned | |
Definition at line 46 of file HarmonicPrefactor.h.
|
strong |
Definition at line 31 of file HarmonicPrefactor.h.
| SearchHalves gpr::htst::bandHalves | ( | const 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 InputParameters & | params, | ||
| const AtomsConfiguration & | atoms, | ||
| const GradientOracle & | oracle, | ||
| const 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.
Definition at line 737 of file HarmonicPrefactor.cpp.
|
inlinenodiscardconstexprnoexcept |
Definition at line 76 of file HarmonicPrefactor.h.
| Half gpr::htst::fromHessian | ( | const Eigen::MatrixXd & | hessian, |
| const Eigen::VectorXd & | x, | ||
| Kind | kind, | ||
| const Options & | options ) |
The half of an exact Hessian in the units of its coordinates.
Definition at line 300 of file HarmonicPrefactor.cpp.
| Options gpr::htst::geometryOptions | ( | const Options & | options, |
| const 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.
Definition at line 278 of file HarmonicPrefactor.cpp.
| SearchHalves & gpr::htst::lastSearchHalves | ( | ) |
The halves of the last search on this thread.
Definition at line 563 of file HarmonicPrefactor.cpp.
| Half gpr::htst::measured | ( | const GradientOracle & | oracle, |
| const Eigen::VectorXd & | x, | ||
| Kind | kind, | ||
| const Options & | options ) |
Full central difference of the oracle gradient: 2 d calls.
Definition at line 318 of file HarmonicPrefactor.cpp.
| Half gpr::htst::minimumHalf | ( | const EvaluationRecord & | record, |
| const Eigen::VectorXd & | x, | ||
| const AtomsConfiguration & | atoms, | ||
| const GradientOracle & | oracle, | ||
| const SearchRequest & | request ) |
The minimizer's half at its result x: searchHalf with searchParameters().
Definition at line 691 of file HarmonicPrefactor.cpp.
| Half gpr::htst::refined | ( | GaussianProcessRegression & | gp, |
| const GradientOracle & | oracle, | ||
| const Eigen::VectorXd & | x, | ||
| Kind | kind, | ||
| const 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 surrogate().
Definition at line 339 of file HarmonicPrefactor.cpp.
| Half gpr::htst::searchHalf | ( | const EvaluationRecord & | record, |
| const Eigen::VectorXd & | x, | ||
| Kind | kind, | ||
| const InputParameters & | params, | ||
| const AtomsConfiguration & | atoms, | ||
| const GradientOracle & | oracle, | ||
| const 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 Status::Unavailable.
Definition at line 614 of file HarmonicPrefactor.cpp.
| InputParameters gpr::htst::searchParameters | ( | ) |
The GP settings of gpr_model_config_defaults, used by searches that carry no GP configuration of their own.
Definition at line 672 of file HarmonicPrefactor.cpp.
| SearchRequest & gpr::htst::searchRequest | ( | ) |
This thread's request; it persists until it is assigned again.
Definition at line 515 of file HarmonicPrefactor.cpp.
|
nodiscard |
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.
Definition at line 699 of file HarmonicPrefactor.cpp.
| Half gpr::htst::surrogate | ( | GaussianProcessRegression & | gp, |
| const Eigen::VectorXd & | x, | ||
| Kind | kind, | ||
| const 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.
Definition at line 333 of file HarmonicPrefactor.cpp.
| SearchRequest gpr::htst::takeSearchRequest | ( | ) |
Consume this thread's one-shot request masses and return the request for the search about to run.
Definition at line 521 of file HarmonicPrefactor.cpp.
| void gpr::htst::validateSearchRequest | ( | const SearchRequest & | request, |
| const 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.
Definition at line 529 of file HarmonicPrefactor.cpp.