pub struct ExponentialConvergence {
pub smoothness: u32,
pub error: f64,
}Expand description
Spectral (exponential) convergence for smooth functions.
Fields§
§smoothness: u32Smoothness class (number of continuous derivatives or ∞ = 99).
error: f64Observed or estimated maximum error.
Implementations§
Source§impl ExponentialConvergence
impl ExponentialConvergence
Sourcepub fn spectral_accuracy(&self) -> bool
pub fn spectral_accuracy(&self) -> bool
True if the method achieves spectral (super-algebraic) accuracy.
Sourcepub fn algebraic_vs_spectral(&self, n: usize) -> (f64, f64)
pub fn algebraic_vs_spectral(&self, n: usize) -> (f64, f64)
Compare algebraic vs spectral convergence rates for n modes.
Returns (algebraic_error, spectral_error) for illustration.
Auto Trait Implementations§
impl Freeze for ExponentialConvergence
impl RefUnwindSafe for ExponentialConvergence
impl Send for ExponentialConvergence
impl Sync for ExponentialConvergence
impl Unpin for ExponentialConvergence
impl UnsafeUnpin for ExponentialConvergence
impl UnwindSafe for ExponentialConvergence
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