24 #ifndef FUNCTOR_COST_FUNCTION_GRADIENT_H_INCLUDED 25 #define FUNCTOR_COST_FUNCTION_GRADIENT_H_INCLUDED 27 #include <gsl/gsl_vector.h> 33 template<
typename decomp_
class>
59 functor_grad(
const gsl_vector* parameters_in, decomp_class* instance_in, gsl_vector* f_in,
double* f0_in,
double dparam_in );
72 #endif // FUNCTOR_COST_FUNCTION_GRADIENT_H_INCLUDED gsl_vector * f
A GNU Scientific Library vector containing the calculated values of the cost function at displaced po...
decomp_class * instance
A pointer pointing to the instance of a class Sub_Matrix_Decomposition.
double dparam
the difference in one direction in the parameter for the gradient calculaiton
void operator()(int i) const
Operator to calculate a gradient component of a cost function labeled by index i.
functor_grad(const gsl_vector *parameters_in, decomp_class *instance_in, gsl_vector *f_in, double *f0_in, double dparam_in)
Constructor of the class.
Function operator class to calculate the gradient components of the cost function in parallel.
Header file for commonly used functions and wrappers to CBLAS functions.
const gsl_vector * parameters
A GNU Scientific Library vector containing the free parameters to be optimized.
double * f0
The value of the cost function at parameters_in.