pub struct Integrator<F> { /* private fields */ }
Implementations§
Source§impl<F: FromPrimitive> Integrator<F>
impl<F: FromPrimitive> Integrator<F>
Sourcepub fn with_maximum_iter(self, maximum_iter: usize) -> Self
pub fn with_maximum_iter(self, maximum_iter: usize) -> Self
Set the maximum number of function evaluations for the integrator
pub fn relative_tolerance(self, relative_tolerance: F) -> Self
pub fn minimum_segment_width(self, minimum_segment_width: F) -> Self
pub fn integrate<P>(
&self,
integrable: P,
range: Range<P::Input>,
) -> Result<Output<IntegrationResult<P::Input, P::Output>, IntegrationState<P::Input, P::Output, F>>, TrellisError<IntegrationResult<P::Input, P::Output>, IntegrationError<P::Input>>>where
F: IntegrableFloat + RealField + FromPrimitive + RescaleError + AccumulateError<F>,
P: Integrable + Send + Sync,
<P as Integrable>::Output: IntegrationOutput<Float = F, Scalar = P::Input>,
<P as Integrable>::Input: ComplexField<RealField = F> + FromPrimitive + Copy,
pub fn integrate_real_complex<P>(
&self,
integrable: P,
range: Range<P::Input>,
) -> Result<Output<IntegrationResult<Complex<P::Input>, P::Output>, IntegrationState<Complex<P::Input>, P::Output, F>>, TrellisError<IntegrationResult<Complex<P::Input>, P::Output>, IntegrationError<Complex<P::Input>>>>where
F: IntegrableFloat + RealField + FromPrimitive + RescaleError + AccumulateError<F> + Copy,
P: Integrable<Input = F> + Send + Sync,
<P as Integrable>::Output: IntegrationOutput<Float = F, Scalar = Complex<F>> + ComplexField<RealField = F> + Copy + FromPrimitive,
pub fn contour_integrate<P>(
&self,
integrable: P,
contour: Contour<P::Input>,
) -> Result<Output<IntegrationResult<P::Input, P::Output>, IntegrationState<P::Input, P::Output, F>>, TrellisError<IntegrationResult<P::Input, P::Output>, IntegrationError<P::Input>>>where
P: Integrable + Send + Sync,
F: IntegrableFloat + RealField + FromPrimitive + RescaleError + AccumulateError<F>,
<P as Integrable>::Output: IntegrationOutput<Float = F, Scalar = P::Input>,
<P as Integrable>::Input: ComplexField<RealField = F> + FromPrimitive + Copy,
Trait Implementations§
Source§impl<F: FromPrimitive> Default for Integrator<F>
impl<F: FromPrimitive> Default for Integrator<F>
Auto Trait Implementations§
impl<F> Freeze for Integrator<F>where
F: Freeze,
impl<F> RefUnwindSafe for Integrator<F>where
F: RefUnwindSafe,
impl<F> Send for Integrator<F>where
F: Send,
impl<F> Sync for Integrator<F>where
F: Sync,
impl<F> Unpin for Integrator<F>where
F: Unpin,
impl<F> UnwindSafe for Integrator<F>where
F: UnwindSafe,
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.