.. index:: pair: class; gpr::FeatomicEnvironmentDescriptor .. _doxid-classgpr_1_1_featomic_environment_descriptor: class gpr::FeatomicEnvironmentDescriptor ======================================== .. toctree:: :hidden: class_gpr_FeatomicEnvironmentDescriptor_CartesianSystem.rst Overview ~~~~~~~~ Normalized, species-resolved SOAP and its Cartesian position derivatives. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class FeatomicEnvironmentDescriptor { public: // classes class :ref:`CartesianSystem`; // construction :target:`FeatomicEnvironmentDescriptor`(std::vector atomic_numbers, double cutoff = 4.0, const Eigen::Matrix3d& cell = Eigen::Matrix3d::Zero(), std::array periodic = {false, false, false}); // methods :ref:`AtomicEnvironments` :ref:`operator()`(const Eigen::VectorXd& positions, bool gradients = true) const; :ref:`SupportedAtomicEnvironments` :target:`supported`(const Eigen::VectorXd& positions, bool gradients = true) const; static :ref:`SpeciesEnvironmentKernel::Descriptor` :ref:`forConfiguration`(const :ref:`AtomsConfiguration`& configuration, double cutoff = 4.0, bool gradients = true); static :ref:`SpeciesEnvironmentKernel::SupportedDescriptor` :ref:`forConfigurationSupported`(const :ref:`AtomsConfiguration`& configuration, double cutoff = 4.0, bool gradients = true); }; .. _details-classgpr_1_1_featomic_environment_descriptor: 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 ------- .. index:: pair: function; operator() .. _doxid-classgpr_1_1_featomic_environment_descriptor_1a53c967862748d66db5fe438abecd17b1: .. ref-code-block:: cpp :class: doxyrest-title-code-block :ref:`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. .. index:: pair: function; forConfiguration .. _doxid-classgpr_1_1_featomic_environment_descriptor_1a64c2f5d992f2ea146bcaca6a924e63fc: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`SpeciesEnvironmentKernel::Descriptor` forConfiguration(const :ref:`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. .. index:: pair: function; forConfigurationSupported .. _doxid-classgpr_1_1_featomic_environment_descriptor_1a62bc9e6ee378bae0c16e055ed81937da: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`SpeciesEnvironmentKernel::SupportedDescriptor` forConfigurationSupported(const :ref:`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.