1 #define BUILDING_LIBRARY 2 #include "InterpolatedDerivatives.h" 8 if(deriv_order > 2)
return 0.0;
10 alglib::real_1d_array interp_values;
25 std::vector<const FunctionDerivatives*> *derivatives,
26 const alglib::real_1d_array &interp_masses,
27 const alglib::real_1d_array &interp_feh,
30 bool delete_derivatives
40 assert(static_cast<long>(derivatives->size())
42 interp_masses.length() * interp_feh.length());
InterpolatedDerivatives(double mass, double feh, std::vector< const FunctionDerivatives *> *derivatives, const alglib::real_1d_array &interp_masses, const alglib::real_1d_array &interp_feh, double age=NaN, bool log_quantity=false, bool delete_derivatives=false)
Create an object that interpolates derivatives from evolution tracks.
std::vector< const FunctionDerivatives * > * __interp_deriv
The age derivatives for each stellar model.
Calculate dy/dx given dy/dx, dy/dln(x), dln(y)/dx or dln(y)/dln(x).
const alglib::real_1d_array & __interp_masses
The masses of the stelar models in .
double __stellar_feh
The [Fe/H] to interpolate to.
double calc_deriv(unsigned deriv_order) const
Returns the deriv_order-th derivative of the quantity.
bool __delete_derivatives
Whether to delete the derivatives it was created with.
const alglib::real_1d_array & __interp_feh
The [Fe/H] of the stellar models.
double __stellar_mass
The mass to interpolate to in .