pub struct GaussLegendre { /* private fields */ }Expand description
An n-point Gauss-Legendre rule on [-1, 1].
Exact for polynomials of degree up to 2n - 1; it carries no error
estimate, so use it only where the integrand’s degree is known (or use
integrate). Nodes come from Newton’s method on P_n started at
Tricomi’s asymptotic estimates.
Implementations§
Source§impl GaussLegendre
impl GaussLegendre
Sourcepub const MAX_POINTS: usize = 512usize
pub const MAX_POINTS: usize = 512usize
Most points supported; beyond it the three-term recurrence’s rounding dominates and an adaptive rule is the better tool.
Sourcepub fn new(n: usize) -> NumericResult<Self>
pub fn new(n: usize) -> NumericResult<Self>
Trait Implementations§
Source§impl Clone for GaussLegendre
impl Clone for GaussLegendre
Source§fn clone(&self) -> GaussLegendre
fn clone(&self) -> GaussLegendre
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GaussLegendre
impl Debug for GaussLegendre
Source§impl PartialEq for GaussLegendre
impl PartialEq for GaussLegendre
impl StructuralPartialEq for GaussLegendre
Auto Trait Implementations§
impl Freeze for GaussLegendre
impl RefUnwindSafe for GaussLegendre
impl Send for GaussLegendre
impl Sync for GaussLegendre
impl Unpin for GaussLegendre
impl UnwindSafe for GaussLegendre
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more