pub struct AdaptiveSettings {
pub abs_tol: f64,
pub rel_tol: f64,
pub max_subdivisions: u32,
}Expand description
Tolerances and work limit for adaptive_quadrature_batch.
§Units
abs_tol is in the units of the integral (integrand times abscissa);
rel_tol is a dimensionless ratio; max_subdivisions is a count.
§Example
use outram_foam_basic_lib::ode::parallel::AdaptiveSettings;
// Struct-update syntax keeps the defaults you did not mean to change.
let s = AdaptiveSettings { abs_tol: 1e-12, ..AdaptiveSettings::default() };
assert_eq!(s.rel_tol, 1e-8);Fields§
§abs_tol: f64Absolute tolerance on the whole integral, in the integral’s units.
rel_tol: f64Relative tolerance, dimensionless, applied against the running estimate of the integral’s magnitude.
max_subdivisions: u32Maximum bisections per lane before reporting
QuadratureStatus::ToleranceNotMet. Also bounded by
MAX_ADAPTIVE_DEPTH on depth.
Trait Implementations§
Source§impl Clone for AdaptiveSettings
impl Clone for AdaptiveSettings
impl Copy for AdaptiveSettings
Source§impl Debug for AdaptiveSettings
impl Debug for AdaptiveSettings
Source§impl Default for AdaptiveSettings
impl Default for AdaptiveSettings
Source§impl PartialEq for AdaptiveSettings
impl PartialEq for AdaptiveSettings
impl StructuralPartialEq for AdaptiveSettings
Auto Trait Implementations§
impl Freeze for AdaptiveSettings
impl RefUnwindSafe for AdaptiveSettings
impl Send for AdaptiveSettings
impl Sync for AdaptiveSettings
impl Unpin for AdaptiveSettings
impl UnsafeUnpin for AdaptiveSettings
impl UnwindSafe for AdaptiveSettings
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