.. index:: pair: namespace; gpr::priors .. _doxid-namespacegpr_1_1priors: namespace gpr::priors ===================== .. toctree:: :hidden: struct_gpr_priors_MorsePriorMeanEvaluation.rst struct_gpr_priors_PopulationPairPrior.rst struct_gpr_priors_PriorHessianPair.rst struct_gpr_priors_PriorPairFrame.rst struct_gpr_priors_ZBLPriorMeanEvaluation.rst class_gpr_priors_CovalentBondPrior.rst class_gpr_priors_MorsePriorMean.rst class_gpr_priors_PopulationPrior.rst class_gpr_priors_ZBLPriorMean.rst Overview ~~~~~~~~ Prior distributions and prior-mean functions for the GP. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block namespace priors { // structs struct :ref:`MorsePriorMeanEvaluation`; struct :ref:`PopulationPairPrior`; struct :ref:`PriorHessianPair`; struct :ref:`PriorPairFrame`; struct :ref:`ZBLPriorMeanEvaluation`; // classes class :ref:`CovalentBondPrior`; class :ref:`MorsePriorMean`; class :ref:`PopulationPrior`; class :ref:`ZBLPriorMean`; // global variables std::array :ref:`kCorderoRadiusPm`; // global functions double :ref:`cordero_radius_angstrom`(int Z); double :ref:`bond_length_angstrom`(int Za, int Zb, double alpha = 1.0); template Eigen::MatrixXd :ref:`applyPriorHessianPairs`(const std::vector<:ref:`PriorHessianPair`>& pairs, const Eigen::MatrixBase& directions); void :ref:`addPriorHessianPairs`(const std::vector<:ref:`PriorHessianPair`>& pairs, Eigen::MatrixXd& hessian); } // namespace priors .. _details-namespacegpr_1_1priors: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Prior distributions and prior-mean functions for the GP. Global Variables ---------------- .. index:: pair: variable; kCorderoRadiusPm .. _doxid-namespacegpr_1_1priors_1a83bc9dc76936e762c76417852cdd6238: .. ref-code-block:: cpp :class: doxyrest-title-code-block std::array 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 ---------------- .. index:: pair: function; cordero_radius_angstrom .. _doxid-namespacegpr_1_1priors_1ab7e78b783b4a57977243e4fa153d02fc: .. ref-code-block:: cpp :class: doxyrest-title-code-block double cordero_radius_angstrom(int Z) Convert one Cordero entry to Angstrom (kernel length-scale unit). .. index:: pair: function; bond_length_angstrom .. _doxid-namespacegpr_1_1priors_1a77127b00938fcc57a56447f584819b7f: .. ref-code-block:: cpp :class: doxyrest-title-code-block double bond_length_angstrom(int Za, int Zb, double alpha = 1.0) :ref:`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. .. index:: pair: function; applyPriorHessianPairs .. _doxid-namespacegpr_1_1priors_1aa5c66b0464c690daf125e2c9bbad23f1: .. ref-code-block:: cpp :class: doxyrest-title-code-block template Eigen::MatrixXd applyPriorHessianPairs(const std::vector<:ref:`PriorHessianPair`>& pairs, const Eigen::MatrixBase& directions) Apply physical prior curvature without forming a dense Hessian. .. index:: pair: function; addPriorHessianPairs .. _doxid-namespacegpr_1_1priors_1a7a6bb450f41e3f9be07cdf43655ffce9: .. ref-code-block:: cpp :class: doxyrest-title-code-block void addPriorHessianPairs(const std::vector<:ref:`PriorHessianPair`>& pairs, Eigen::MatrixXd& hessian) Add the same pair blocks to a dense Cartesian Hessian.