1 #ifndef theplu_yat_utility_multivariable_df 2 #define theplu_yat_utility_multivariable_df 27 #include <yat/utility/VectorConstView.h> 28 #include <yat/utility/VectorView.h> 30 #include <gsl/gsl_vector.h> 36 namespace multivariable
39 void df(
const gsl_vector* gsl_x,
void* params, gsl_vector* gradient)
41 FUNC* func =
static_cast<FUNC*
>(params);
42 yat::utility::VectorConstView x(gsl_x);
43 yat::utility::VectorView g(gradient);
49 void fdf(
const gsl_vector* x,
void* params,
50 double* y, gsl_vector* gradient)
52 *y = f<FUNC>(x, params);
53 df<FUNC>(x, params, gradient);
The Department of Theoretical Physics namespace as we define it.