pub trait NumericalQuadratureGenerator {
    // Required method
    fn get_rule(
        &self,
        npoints: usize,
    ) -> Result<NumericalQuadratureDefinition, InvalidQuadrature>;
}
Expand description

A trait for obtaining a numerical quadrature rule. Depending on a specified number of points a NumericalQuadratureDefinition is returned with the weights and points of the rule.

Required Methods§

source

fn get_rule( &self, npoints: usize, ) -> Result<NumericalQuadratureDefinition, InvalidQuadrature>

Return the quadrature rule for a given order.

Implementors§