Loading...
Searching...
No Matches
gpr::CutoffPairFeature Struct Reference

#include <gpr/auxiliary/PairCutoff.h>

Public Member Functions

double derivative (Eigen::Index coordinate) const

Public Attributes

Eigen::Index first
Eigen::Index second
Eigen::Index type
double value
Eigen::Vector3d gradient
Eigen::Matrix3d hessian

Detailed Description

Sparse pair feature in a fixed atom-index vocabulary. Frozen atoms follow the moving atoms in the index space and have no independent coordinates.

Definition at line 73 of file PairCutoff.h.

Member Function Documentation

◆ derivative()

double gpr::CutoffPairFeature::derivative ( Eigen::Index coordinate) const
inlinenodiscard

Definition at line 81 of file PairCutoff.h.

82 {
83 const Eigen::Index atom = coordinate / 3;
84 if (atom == first) return gradient(coordinate % 3);
85 if (atom == second) return -gradient(coordinate % 3);
86 return 0.0;
87 }
Eigen::Index second
Definition PairCutoff.h:75
Eigen::Vector3d gradient
Definition PairCutoff.h:78

Member Data Documentation

◆ first

Eigen::Index gpr::CutoffPairFeature::first

Definition at line 74 of file PairCutoff.h.

◆ gradient

Eigen::Vector3d gpr::CutoffPairFeature::gradient

Definition at line 78 of file PairCutoff.h.

◆ hessian

Eigen::Matrix3d gpr::CutoffPairFeature::hessian

Definition at line 79 of file PairCutoff.h.

◆ second

Eigen::Index gpr::CutoffPairFeature::second

Definition at line 75 of file PairCutoff.h.

◆ type

Eigen::Index gpr::CutoffPairFeature::type

Definition at line 76 of file PairCutoff.h.

◆ value

double gpr::CutoffPairFeature::value

Definition at line 77 of file PairCutoff.h.


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