Loading...
Searching...
No Matches
gpr::pairlocal::Pair Struct Reference

#include <gpr/ml/gp/PairLocalKernel.h>

Public Attributes

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)

Detailed Description

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.

Definition at line 36 of file PairLocalKernel.h.

Member Data Documentation

◆ first

Eigen::Index gpr::pairlocal::Pair::first = -1

moving atom whose gradient is stored

Definition at line 37 of file PairLocalKernel.h.

◆ second

Eigen::Index gpr::pairlocal::Pair::second = -1

moving partner (gradient negated) or -1

Definition at line 38 of file PairLocalKernel.h.

◆ type

Eigen::Index gpr::pairlocal::Pair::type = -1

pair type (length-scale index)

Definition at line 39 of file PairLocalKernel.h.


The documentation for this struct was generated from the following file: