class gpr::capi::Potential¶
#include <gpr/capi/gpridge.hpp>
class Potential {
public:
// construction
Potential();
Potential(gpr_potential_t h, adopt_t);
Potential(gpr_potential_t h, borrow_t);
Potential(const Potential&);
Potential(Potential&& other);
~Potential();
// methods
Potential& operator=(const Potential&);
Potential& operator=(Potential&& other);
void reset();
gpr_potential_t release();
bool owns() const;
gpr_potential_t handle() const;
operator bool() const;
void 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 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 Potential from_force(gpr_force_fn fn, void* user_data = nullptr);
static Potential from_force_with_uncertainty(gpr_force_with_uncertainty_fn fn, void* user_data = nullptr);
};