#include <gpr/potentials/GprMeanPotential.h>
Public Member Functions | |
| GprMeanPotential (gpr::GaussianProcessRegression &model) | |
| GprMeanPotential (std::shared_ptr< gpr::GaussianProcessRegression > model) | |
| GprMeanPotential (gpr::neb::ActiveLearningSession &session) | |
| void | resetModel (std::shared_ptr< gpr::GaussianProcessRegression > model) |
| std::uint64_t | surfaceEpoch () const noexcept |
| std::uint64_t | paramsKey () const noexcept override |
| rgpot::PotCaps | caps () const noexcept override |
| void | forceImpl (const rgpot::ForceInput &in, rgpot::ForceOut *out) const override |
| void | hessianVectorImpl (const rgpot::ForceInput &in, const double *direction, double *action) const |
| void | force (long N, const double *R, const int *atomicNrs, double *F, double *U, double *variance, const double *box) |
| void | forceBatch (long N, std::size_t B, const double *R, const int *atomicNrs, double *F, double *U, const double *box) |
| PotentialWrapper | asWrapper () |
Frozen-or-live GP surface as a PotentialWrapper.
Mean energy and gradient come from the cached factorization. Energy variance uses tryGateEnergyVariance (cheap Pmat) and falls back to calculateVariance. surfaceEpoch() is epoch_base_ plus the factor delta (factorEpoch() - base_factor_epoch_), or the session surface epoch when this surface follows one, so a host cache key cannot reuse a stale PES.
Definition at line 31 of file GprMeanPotential.h.
|
explicit |
Definition at line 20 of file GprMeanPotential.cpp.
|
explicit |
Definition at line 26 of file GprMeanPotential.cpp.
|
explicit |
Definition at line 33 of file GprMeanPotential.cpp.
|
nodiscard |
Definition at line 264 of file GprMeanPotential.cpp.
|
nodiscardoverridenoexcept |
Definition at line 83 of file GprMeanPotential.cpp.
| void pot::GprMeanPotential::force | ( | long | N, |
| const double * | R, | ||
| const int * | atomicNrs, | ||
| double * | F, | ||
| double * | U, | ||
| double * | variance, | ||
| const double * | box ) |
Definition at line 199 of file GprMeanPotential.cpp.
| void pot::GprMeanPotential::forceBatch | ( | long | N, |
| std::size_t | B, | ||
| const double * | R, | ||
| const int * | atomicNrs, | ||
| double * | F, | ||
| double * | U, | ||
| const double * | box ) |
Definition at line 233 of file GprMeanPotential.cpp.
|
override |
Definition at line 88 of file GprMeanPotential.cpp.
| void pot::GprMeanPotential::hessianVectorImpl | ( | const rgpot::ForceInput & | in, |
| const double * | direction, | ||
| double * | action ) const |
Definition at line 100 of file GprMeanPotential.cpp.
|
nodiscardoverridenoexcept |
Definition at line 78 of file GprMeanPotential.cpp.
| void pot::GprMeanPotential::resetModel | ( | std::shared_ptr< gpr::GaussianProcessRegression > | model | ) |
Definition at line 40 of file GprMeanPotential.cpp.
|
nodiscardnoexcept |
Definition at line 67 of file GprMeanPotential.cpp.