1 #ifndef __INTERPOLATED_DERIVATIVES_H 2 #define __INTERPOLATED_DERIVATIVES_H 4 #include "../Core/SharedLibraryExportMacros.h" 6 #include "../Core/LogDerivatives.h" 7 #include "../Core/Functions.h" 29 const alglib::real_1d_array
40 double calc_deriv(
unsigned deriv_order)
const;
58 std::vector<const FunctionDerivatives*> *derivatives,
61 const alglib::real_1d_array &interp_masses,
64 const alglib::real_1d_array &interp_feh,
72 bool log_quantity =
false,
76 bool delete_derivatives =
false 82 if(__delete_derivatives) {
83 for(
size_t i = 0; i < __interp_deriv->size(); i++)
84 delete (*__interp_deriv)[i];
85 delete __interp_deriv;
Derivative class for stellar quantities which are interpolated age, mass and [Fe/H].
~InterpolatedDerivatives()
Deletes the interpolation data if so specified on creation.
std::vector< const FunctionDerivatives * > * __interp_deriv
The age derivatives for each stellar model.
Define a single function performing mass-[Fe/H] interpolations.
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 .
bool __delete_derivatives
Whether to delete the derivatives it was created with.
double __stellar_mass
The mass to interpolate to in .