|
CLASSpp Manual
Cosmology reference and developer manual
|
#include <scalar_field_potential.h>
A scalar-field potential bundled with its first two derivatives. Each callable takes (phi, params); the owning ScalarFieldSpecies passes its scf_parameters_ as params, so the shooting machinery (which tunes params[tuning_index]) keeps working unchanged. The potential is evaluated only on the background ODE (never in the per-k perturbation loop), so std::function indirection is free.