13 template<
typename precision>
21 template<
typename precision>
27 template<
typename precision>
33 template<
typename precision>
36 this->nodes = vector<precision>(this->num_nodes, precision(0.0));
39 for (
size_t j = 0; j < this->num_nodes; j++) {
40 this->nodes[j] = 0.5 * (1.0 + roots[j]);
Interface for quadrature handlers.
virtual bool left_is_node() const override
virtual void compute_nodes() override
Quadrature handler for Gauss-Legendre quadrature.
static Polynomial< CoeffT > legendre(const size_t order)
Computes the Legendre polynomial of given order.
virtual bool right_is_node() const override
virtual void compute_weights()