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

Function that computes the quadrature points and weights from the moments using the three term recurrence relation.

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

Works only for the univariate case. Error message is returned if attempted with dimension > 1.

 All Classes Files Functions Variables Typedefs Friends Defines