class gpr::FeatomicEnvironmentDescriptor

Overview

Normalized, species-resolved SOAP and its Cartesian position derivatives. More…

#include <gpr/covariance_functions/FeatomicEnvironmentDescriptor.h>
 
class FeatomicEnvironmentDescriptor {
public:
    // classes
 
    class CartesianSystem;
 
    // construction
 
    FeatomicEnvironmentDescriptor(std::vector<int> atomic_numbers, double cutoff = 4.0, const Eigen::Matrix3d& cell = Eigen::Matrix3d::Zero(), std::array<bool, 3> periodic = {false, false, false});
 
    // methods
 
    AtomicEnvironments operator()(const Eigen::VectorXd& positions, bool gradients = true) const;
    SupportedAtomicEnvironments supported(const Eigen::VectorXd& positions, bool gradients = true) const;
    static SpeciesEnvironmentKernel::Descriptor forConfiguration(const AtomsConfiguration& configuration, double cutoff = 4.0, bool gradients = true);
    static SpeciesEnvironmentKernel::SupportedDescriptor forConfigurationSupported(const AtomsConfiguration& configuration, double cutoff = 4.0, bool gradients = true);
};

Detailed Documentation

Normalized, species-resolved SOAP and its Cartesian position derivatives. The element vocabulary is fixed for the lifetime of the descriptor, so crossing a neighbor cutoff cannot change the covariance feature layout.

Methods

AtomicEnvironments operator()(const Eigen::VectorXd& positions, bool gradients = true) const

Disabling gradients computes the same normalized features without requesting position derivatives or allocating Jacobian blocks.

static SpeciesEnvironmentKernel::Descriptor forConfiguration(const AtomsConfiguration& configuration, double cutoff = 4.0, bool gradients = true)

Keep frozen environments in the energy sum while differentiating only the moving Cartesian coordinates supplied by the GP. With gradients disabled, values and species retain their layout and jacobians is empty.

static SpeciesEnvironmentKernel::SupportedDescriptor forConfigurationSupported(const AtomsConfiguration& configuration, double cutoff = 4.0, bool gradients = true)

Cartesian derivatives retain their original moving-coordinate indices without allocating absent rows for each atomic environment.