.. index:: pair: class; gpr::capi::Potential .. _doxid-classgpr_1_1capi_1_1_potential: class gpr::capi::Potential ========================== .. toctree:: :hidden: .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include class Potential { public: // construction :target:`Potential`(); :target:`Potential`(:ref:`gpr_potential_t` h, :ref:`adopt_t`); :target:`Potential`(:ref:`gpr_potential_t` h, :ref:`borrow_t`); :target:`Potential`(const Potential&); :target:`Potential`(Potential&& other); :target:`~Potential`(); // methods :ref:`Potential`& :target:`operator=`(const :ref:`Potential`&); :ref:`Potential`& :target:`operator=`(:ref:`Potential`&& other); void :target:`reset`(); :ref:`gpr_potential_t` :target:`release`(); bool :target:`owns`() const; :ref:`gpr_potential_t` :target:`handle`() const; :target:`operator bool`() const; void :target:`force`(long n_atoms, const double* R, const int* atomic_nrs, double* F, double* energy, double* energy_noise_rms = nullptr, const double* box = nullptr) const; void :target:`force_with_uncertainty`(long n_atoms, const double* R, const int* atomic_nrs, double* F, double* energy, double* energy_noise_rms = nullptr, double* force_noise_rms = nullptr, const double* box = nullptr) const; static :ref:`Potential` :target:`from_force`(:ref:`gpr_force_fn` fn, void* user_data = nullptr); static :ref:`Potential` :target:`from_force_with_uncertainty`(:ref:`gpr_force_with_uncertainty_fn` fn, void* user_data = nullptr); };