.. index:: pair: struct; gpr::pairlocal::Pair .. _doxid-structgpr_1_1pairlocal_1_1_pair: struct gpr::pairlocal::Pair =========================== .. toctree:: :hidden: Overview ~~~~~~~~ The :ref:`Sexpat ` kernel on radial pair features, K_ij = m exp(-S_ij), S_ij = sum_f w_f (q_if - q_jf)^2, w_f = 1 / l_t(f)^2, has a joint [energy; gradient] covariance whose (i, j) tile over the channels (E, x_1, ..., x_D) is K_ij [ 1 h_j^T ] [ -g_i -g_i h_j^T + 2 S ], g_i = 2 sum_f w_f d_f J_if, h_j = 2 sum_f w_f d_f J_jf, S = sum_f w_f J_if J_jf^T, with d_f = q_if - q_jf and J_if the Cartesian gradient of pair f at configuration i. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct Pair { // fields Eigen::Index :ref:`first` = -1; Eigen::Index :ref:`second` = -1; Eigen::Index :ref:`type` = -1; }; .. _details-structgpr_1_1pairlocal_1_1_pair: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ The :ref:`Sexpat ` kernel on radial pair features, K_ij = m exp(-S_ij), S_ij = sum_f w_f (q_if - q_jf)^2, w_f = 1 / l_t(f)^2, has a joint [energy; gradient] covariance whose (i, j) tile over the channels (E, x_1, ..., x_D) is K_ij [ 1 h_j^T ] [ -g_i -g_i h_j^T + 2 S ], g_i = 2 sum_f w_f d_f J_if, h_j = 2 sum_f w_f d_f J_jf, S = sum_f w_f J_if J_jf^T, with d_f = q_if - q_jf and J_if the Cartesian gradient of pair f at configuration i. J_if has six non-zero entries (the two atoms of the pair), so S and the length-scale derivatives of the tile are sums of 3 x 3 products over pairs: the tile costs O(D^2 + 36 F) instead of a walk over every channel pair. The training covariance and its hyperparameter contractions are assembled tile by tile here. Fields ------ .. index:: pair: variable; first .. _doxid-structgpr_1_1pairlocal_1_1_pair_1a103e5d1688ac1f712d1c71d74cc5e930: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::Index first = -1 moving atom whose gradient is stored .. index:: pair: variable; second .. _doxid-structgpr_1_1pairlocal_1_1_pair_1aa34f2d8ee7975859f3fdc783b45bd2d0: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::Index second = -1 moving partner (gradient negated) or -1 .. index:: pair: variable; type .. _doxid-structgpr_1_1pairlocal_1_1_pair_1a2ba398b9989fec7191e9469edb8fb86d: .. ref-code-block:: cpp :class: doxyrest-title-code-block Eigen::Index type = -1 pair type (length-scale index)