CLASSpp Manual
Cosmology reference and developer manual
Loading...
Searching...
No Matches
ScalarFieldPotential Struct Reference

#include <scalar_field_potential.h>

Detailed Description

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.


The documentation for this struct was generated from the following file: