.. index:: pair: class; gpr::linalg::KokkosMolecularPosterior .. _doxid-classgpr_1_1linalg_1_1_kokkos_molecular_posterior: class gpr::linalg::KokkosMolecularPosterior =========================================== .. toctree:: :hidden: struct_gpr_linalg_KokkosMolecularPosterior_Impl.rst Overview ~~~~~~~~ Device-owned inverse-distance GP. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class KokkosMolecularPosterior { public: // structs struct :ref:`Impl`; // construction :target:`KokkosMolecularPosterior`(const :ref:`AtomsConfiguration`& configuration, double far_radius = 0.0); :target:`KokkosMolecularPosterior`(const KokkosMolecularPosterior&); :target:`~KokkosMolecularPosterior`(); // methods :ref:`KokkosMolecularPosterior`& :target:`operator=`(const :ref:`KokkosMolecularPosterior`&); bool :target:`matchesConfiguration`(const :ref:`AtomsConfiguration`& configuration, double far_radius) const; double :target:`condition`(const :ref:`EigenMatrix`& rows, const Eigen::VectorXd& channels, const Eigen::VectorXd& targets, const Eigen::VectorXd& noise, const Eigen::VectorXd& lengths, double magnitude, double constant, double relative_nugget, double jitter, bool append_only = false); bool :ref:`canAppend`(Eigen::Index geometries, const Eigen::VectorXd& noise, const Eigen::VectorXd& lengths, double magnitude, double constant, double jitter) const; std::array :target:`objectiveParts`(); Eigen::VectorXd :target:`downloadInverseDiagonal`(); Eigen::VectorXd :target:`gradient`(double differentiable_noise = 0.0, double data_term_scale = 1.0); Eigen::VectorXd :ref:`gradient`(double differentiable_noise, const std::vector& type_group, const std::vector& group_slot, double data_term_scale = 1.0); void :target:`predict`(const :ref:`EigenMatrix`& rows, const Eigen::VectorXd& channels, Eigen::VectorXd* mean, Eigen::VectorXd* variance, bool stable_variance = false); void :target:`setTargets`(const Eigen::VectorXd& targets); bool :target:`valid`() const; Eigen::Index :target:`order`() const; std::shared_ptr`> :target:`factorHandle`() const; :ref:`EigenMatrix` :target:`downloadFactor`() const; Eigen::VectorXd :target:`downloadAlpha`() const; Eigen::VectorXd :target:`downloadFactorDiagonal`() const; const :ref:`EigenMatrix`& :target:`trainingRows`() const; bool :ref:`matchesTraining`(const :ref:`EigenMatrix`& rows, const Eigen::VectorXd& channels, const Eigen::VectorXd& noise, const Eigen::VectorXd& lengths, double magnitude, double constant, double nugget, double jitter) const; :ref:`KokkosMolecularStats` :target:`stats`() const; }; .. _details-classgpr_1_1linalg_1_1_kokkos_molecular_posterior: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Device-owned inverse-distance GP. Coordinates, targets and noise enter through host input boundaries; predictions and scalar fit derivatives leave through output boundaries. Descriptors, joint covariances, factors, coefficients and objective weights stay in the execution memory space. Methods ------- .. index:: pair: function; canAppend .. _doxid-classgpr_1_1linalg_1_1_kokkos_molecular_posterior_1abfbd6665a60ee63e8f23f2cb891f9b35: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool canAppend(Eigen::Index geometries, const Eigen::VectorXd& noise, const Eigen::VectorXd& lengths, double magnitude, double constant, double jitter) const log magnitude, then log length of each pair type; optional log noise. .. index:: pair: function; gradient .. _doxid-classgpr_1_1linalg_1_1_kokkos_molecular_posterior_1a4eb9641f6f4ba6f4d24a08a320aa96f5: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::VectorXd gradient(double differentiable_noise, const std::vector& type_group, const std::vector& group_slot, double data_term_scale = 1.0) The same gradient with the pair types of one length scale contracted together. ``type_group[t]`` is the group of pair type t, groups numbered from zero; the caller holds the lengths of a group equal. ``group_slot[g]`` is the pair type whose entry receives the derivative of group g, or -1 to drop it; every other length entry is zero. .. index:: pair: function; matchesTraining .. _doxid-classgpr_1_1linalg_1_1_kokkos_molecular_posterior_1a6f13e26b4e31e1cdfc58a80930e3902c: .. ref-code-block:: cpp :class: doxyrest-title-code-block bool matchesTraining(const :ref:`EigenMatrix`& rows, const Eigen::VectorXd& channels, const Eigen::VectorXd& noise, const Eigen::VectorXd& lengths, double magnitude, double constant, double nugget, double jitter) const True when conditioning on exactly these inputs would reuse the resident factor unchanged.