class gpr::priors::ZBLPriorMean

Overview

#include <gpr/prior/ZBLPriorMean.h>
 
class ZBLPriorMean {
public:
    // typedefs
 
    typedef PriorHessianPair HessianPair;
 
    // construction
 
    ZBLPriorMean(const AtomsConfiguration& atoms_config);
 
    // methods
 
    bool active() const;
 
    template <typename Derived>
    double energy(const Eigen::MatrixBase<Derived>& positions) const;
 
    template <typename Derived>
    ZBLPriorMeanEvaluation evaluate(const Eigen::MatrixBase<Derived>& positions) const;
 
    template <typename Derived>
    std::vector<HessianPair> hessianPairs(const Eigen::MatrixBase<Derived>& positions) const;
 
    void subtractFromTargets(const Coord& positions, Eigen::Index energy_count, Eigen::VectorXd& targets) const;
    void addToObservation(Observation& observation) const;
    static double covalentRadius(int Z);
    static double repulsionOnsetRadius(int Zi, int Zj);
 
    template <typename Derived>
    static Eigen::MatrixXd applyHessianPairs(const std::vector<HessianPair>& pairs, const Eigen::MatrixBase<Derived>& directions);
};

Detailed Documentation

Methods

template <typename Derived>
std::vector<HessianPair> hessianPairs(const Eigen::MatrixBase<Derived>& positions) const

Cartesian pair blocks retain only interactions inside the cutoff.

static double covalentRadius(int Z)

Cordero single-bond covalent radius (Angstrom) of atomic number Z.

static double repulsionOnsetRadius(int Zi, int Zj)

Pair distance below which the switched repulsion is nonzero: the outer edge of the quintic switch, 0.75 of the covalent-radii sum. Above it the prior mean is exactly inert, so the residual process carries the whole surface; below it the delta-learning premise ends and every measured row becomes a Pauli-wall target. The band and the dimer use it as the per-element-pair contact floor of their domain.

template <typename Derived>
static Eigen::MatrixXd applyHessianPairs(const std::vector<HessianPair>& pairs, const Eigen::MatrixBase<Derived>& directions)

Apply physical prior curvature without forming a dense Hessian.