int mom_eval_fdf ( const gsl_vector *  x,
void *  params,
gsl_vector *  f,
gsl_matrix *  J 
)

Function that evaluates the function and its gradient in Newton's method.

Parameters:
x: vquad pts/wts ector on which function is defined
params: Void pointer passing parameters to compute moments
f: Vector containing functional evaluation during Newton's method
J: Jacobian matrix for Newton's method

Used for the Newton's method of solving system of non-linear equations to get quadrature points and weights. Both function and gradient computed at once to save time.

 All Classes Files Functions Variables Typedefs Friends Defines