struct gpr::pairlocal::Pair¶
Overview¶
The 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. More…
Detailed Documentation¶
The 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¶
Eigen::Index first = -1
moving atom whose gradient is stored
Eigen::Index second = -1
moving partner (gradient negated) or -1
Eigen::Index type = -1
pair type (length-scale index)