namespace gpr::priors¶
Overview¶
Prior distributions and prior-mean functions for the GP. More…
namespace priors {
// structs
struct MorsePriorMeanEvaluation;
struct PopulationPairPrior;
struct PriorHessianPair;
struct PriorPairFrame;
struct ZBLPriorMeanEvaluation;
// classes
class CovalentBondPrior;
class MorsePriorMean;
class PopulationPrior;
class ZBLPriorMean;
// global variables
std::array<double, 97> kCorderoRadiusPm;
// global functions
double cordero_radius_angstrom(int Z);
double bond_length_angstrom(int Za, int Zb, double alpha = 1.0);
template <typename Derived>
Eigen::MatrixXd applyPriorHessianPairs(const std::vector<PriorHessianPair>& pairs, const Eigen::MatrixBase<Derived>& directions);
void addPriorHessianPairs(const std::vector<PriorHessianPair>& pairs, Eigen::MatrixXd& hessian);
} // namespace priors
Detailed Documentation¶
Prior distributions and prior-mean functions for the GP.
Global Variables¶
std::array<double, 97> kCorderoRadiusPm
Cordero 2008 covalent radii (single-bond), indexed by atomic number Z = 1..96. Units: picometres. Z = 0 sentinel reserved for the “unknown / dummy” entry the lookup uses when Z is out of range.
Global Functions¶
double cordero_radius_angstrom(int Z)
Convert one Cordero entry to Angstrom (kernel length-scale unit).
double bond_length_angstrom(int Za, int Zb, double alpha = 1.0)
Sum of Cordero radii for atoms of species (Za, Zb), scaled by alpha, in Angstrom. The product is the natural physical length scale of an SE kernel applied to atomic systems (Bartok 2010, Bertinetto 2018): the kernel decorrelates atom-pair distances on the order of the equilibrium bond length.
template <typename Derived>
Eigen::MatrixXd applyPriorHessianPairs(const std::vector<PriorHessianPair>& pairs, const Eigen::MatrixBase<Derived>& directions)
Apply physical prior curvature without forming a dense Hessian.
void addPriorHessianPairs(const std::vector<PriorHessianPair>& pairs, Eigen::MatrixXd& hessian)
Add the same pair blocks to a dense Cartesian Hessian.