quadpts moments::get_quadpts ( size_t  dimension,
size_t  num_points 
) const

Function that computes the quadrature points and weights from the moments using Newton's method.

Parameters:
dimension: Dimension of the problem
num_points: Number of quadrature points
Returns:
quadpts : A vector of class quadpts

Uses Newton's method for computing the solution to the non-linear system of equations. Works only for the multivariate case as well. Problems have been encounterd for num_points > 3 for the univariate case.

 All Classes Files Functions Variables Typedefs Friends Defines