.. index:: pair: class; gpr::GeodesicHeatEnergyForceKernel .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel: class gpr::GeodesicHeatEnergyForceKernel ======================================== .. toctree:: :hidden: struct_gpr_GeodesicHeatEnergyForceKernel_FeatureEvaluation.rst Overview ~~~~~~~~ Finite spectral heat kernel on a molecular reference path, extended smoothly to Cartesian geometries through the atomistic inverse-distance metric. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class GeodesicHeatEnergyForceKernel { public: // structs struct :ref:`FeatureEvaluation`; // construction :target:`GeodesicHeatEnergyForceKernel`(const :ref:`Coord`& reference_path, const :ref:`AtomsConfiguration`& atoms_configuration, const :ref:`FieldMatrixd`& atomistic_length_scale, double covariance_weight); // methods :ref:`GeodesicHeatEnergyForceKernel` :ref:`withCovarianceWeight`(double weight) const; bool :ref:`meanHessianVector`(const :ref:`Coord`& training, const Eigen::VectorXd& weights, const Eigen::VectorXd& position, const Eigen::VectorXd& direction, Eigen::VectorXd& action) const; double :target:`covarianceWeight`() const; Eigen::Index :target:`dimensions`() const; const :ref:`Coord`& :target:`referencePath`() const; const :ref:`FieldMatrixd`& :target:`atomisticLengthScales`() const; Eigen::Index :ref:`referenceSize`() const; Eigen::MatrixXd :ref:`covarianceBlock`(const :ref:`Coord`& left_positions, const :ref:`Coord`& right_positions, Eigen::Index left_channel, Eigen::Index right_channel) const; Eigen::VectorXd :ref:`energyDiagonal`(const :ref:`Coord`& positions) const; Eigen::MatrixXd :ref:`jointEnergyGradientFeatures`(const :ref:`Coord`& positions) const; Eigen::MatrixXd :ref:`jointEnergyGradientCovariance`(const :ref:`Coord`& positions) const; Eigen::MatrixXd :target:`jointEnergyGradientCrossCovariance`(const :ref:`Coord`& left_positions, const :ref:`Coord`& right_positions) const; Eigen::MatrixXd :ref:`jointEnergyForceCovariance`(const :ref:`Coord`& positions) const; }; .. _details-classgpr_1_1_geodesic_heat_energy_force_kernel: 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 :ref:`Sexpat ` or a chart pullback with a nonnegative weight. Energy and Cartesian gradients are derivatives of that one summed scalar kernel. Methods ------- .. index:: pair: function; withCovarianceWeight .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel_1a09acf84579e5e11fef64be43433aa3bc: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`GeodesicHeatEnergyForceKernel` withCovarianceWeight(double weight) const Reweight this component while retaining its reference geometry and metric. .. index:: pair: function; meanHessianVector .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel_1ac0d34994cd3fde8caa63f27a1f2e5e1a: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool meanHessianVector(const :ref:`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. .. index:: pair: function; referenceSize .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel_1a7043ce7b7571db55435cfd235adee333: .. ref-code-block:: cpp :class: doxyrest-title-code-block 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. .. index:: pair: function; covarianceBlock .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel_1a1968034ba8463d1176e4cdedb5f6b110: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd covarianceBlock(const :ref:`Coord`& left_positions, const :ref:`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. .. index:: pair: function; energyDiagonal .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel_1a07cf9c0285f408b46f515a1a0b33fc06: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd energyDiagonal(const :ref:`Coord`& positions) const Weighted heat feature norm at each geometry, without Cartesian Jacobians or an all-pairs covariance matrix. .. index:: pair: function; jointEnergyGradientFeatures .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel_1a34f5b1901d8709e8edfeaeb1195e9f00: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd jointEnergyGradientFeatures(const :ref:`Coord`& positions) const Feature factor in :ref:`Observation ` order [E; G_col0; ...; G_colD-1]. Its Gram matrix is the joint covariance, including the configured nonnegative covariance weight. .. index:: pair: function; jointEnergyGradientCovariance .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel_1a366b1cc5ab018c879e56b5f6aabfbcd5: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd jointEnergyGradientCovariance(const :ref:`Coord`& positions) const Joint covariance in :ref:`Observation ` order [E; G_col0; ...; G_colD-1]. .. index:: pair: function; jointEnergyForceCovariance .. _doxid-classgpr_1_1_geodesic_heat_energy_force_kernel_1ac1fdfe6d1b2f142d18c749a0d8eb5bce: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::MatrixXd jointEnergyForceCovariance(const :ref:`Coord`& positions) const Joint covariance in physical order [E; F_col0; ...; F_colD-1].