class gpr::GeodesicHeatEnergyForceKernel¶
Overview¶
Finite spectral heat kernel on a molecular reference path, extended smoothly to Cartesian geometries through the atomistic inverse-distance metric. More…
#include <gpr/covariance_functions/GeodesicHeatEnergyForceKernel.h>
class GeodesicHeatEnergyForceKernel {
public:
// structs
struct FeatureEvaluation;
// construction
GeodesicHeatEnergyForceKernel(const Coord& reference_path, const AtomsConfiguration& atoms_configuration, const FieldMatrixd& atomistic_length_scale, double covariance_weight);
// methods
GeodesicHeatEnergyForceKernel withCovarianceWeight(double weight) const;
bool meanHessianVector(const Coord& training, const Eigen::VectorXd& weights, const Eigen::VectorXd& position, const Eigen::VectorXd& direction, Eigen::VectorXd& action) const;
double covarianceWeight() const;
Eigen::Index dimensions() const;
const Coord& referencePath() const;
const FieldMatrixd& atomisticLengthScales() const;
Eigen::Index referenceSize() const;
Eigen::MatrixXd covarianceBlock(const Coord& left_positions, const Coord& right_positions, Eigen::Index left_channel, Eigen::Index right_channel) const;
Eigen::VectorXd energyDiagonal(const Coord& positions) const;
Eigen::MatrixXd jointEnergyGradientFeatures(const Coord& positions) const;
Eigen::MatrixXd jointEnergyGradientCovariance(const Coord& positions) const;
Eigen::MatrixXd jointEnergyGradientCrossCovariance(const Coord& left_positions, const Coord& right_positions) const;
Eigen::MatrixXd jointEnergyForceCovariance(const Coord& positions) const;
};
Detailed Documentation¶
Finite spectral heat kernel on a molecular reference path, extended smoothly to Cartesian geometries through the atomistic inverse-distance metric.
The reference-path graph discretizes its one-dimensional Laplace-Beltrami operator with the path’s metric arc lengths. Its constant null mode is omitted because normalized query affinities turn it into a constant energy feature with zero Cartesian Jacobian, duplicating the ordinary GP constant covariance. All nonconstant graph eigenmodes are retained. Query features are normalized atomistic-kernel affinities applied to the nodal heat features, so they remain invariant to rigid motion and regular at linear molecular geometries.
This class returns only the geodesic covariance component. Assembly adds it to Sexpat or a chart pullback with a nonnegative weight. Energy and Cartesian gradients are derivatives of that one summed scalar kernel.
Methods¶
GeodesicHeatEnergyForceKernel withCovarianceWeight(double weight) const
Reweight this component while retaining its reference geometry and metric.
bool meanHessianVector(const Coord& training, const Eigen::VectorXd& weights, const Eigen::VectorXd& position, const Eigen::VectorXd& direction, Eigen::VectorXd& action) const
Analytic Cartesian Hessian action of a joint energy-gradient expansion.
Eigen::Index referenceSize() const
Number of retained heat feature modes, i.e. the column count of the joint feature factor. The constant null mode is dropped, so this is one less than the retained reference-path size for a connected path.
Eigen::MatrixXd covarianceBlock(const Coord& left_positions, const Coord& right_positions, Eigen::Index left_channel, Eigen::Index right_channel) const
Channel -1 denotes energy; channel d in [0, D) denotes Cartesian gradient component d.
Eigen::VectorXd energyDiagonal(const Coord& positions) const
Weighted heat feature norm at each geometry, without Cartesian Jacobians or an all-pairs covariance matrix.
Eigen::MatrixXd jointEnergyGradientFeatures(const Coord& positions) const
Feature factor in Observation order [E; G_col0; …; G_colD-1]. Its Gram matrix is the joint covariance, including the configured nonnegative covariance weight.
Eigen::MatrixXd jointEnergyGradientCovariance(const Coord& positions) const
Joint covariance in Observation order [E; G_col0; …; G_colD-1].
Eigen::MatrixXd jointEnergyForceCovariance(const Coord& positions) const
Joint covariance in physical order [E; F_col0; …; F_colD-1].