[−][src]Struct diffeq::ode::problem::OdeBuilder
Methods
impl<F, Y> OdeBuilder<F, Y> where
F: Fn(f64, &Y) -> Y,
Y: OdeType,
[src]
F: Fn(f64, &Y) -> Y,
Y: OdeType,
pub fn fun(self, f: F) -> Self
[src]
set the problem function
pub fn init<T: Into<Y>>(self, y0: T) -> Self
[src]
set the initial starting point
pub fn tspan(self, tspan: Vec<f64>) -> Self
[src]
Set the time span for the problem.
pub fn tspan_linspace(self, from: f64, to: f64, n: usize) -> Self
[src]
Creates a new tspan with n
items from from
to to
.
pub fn build(self) -> Result<OdeProblem<F, Y>, OdeError>
[src]
Creates a new OdeProblem
.
Returns an error if a field is None.
Trait Implementations
impl<F: Clone, Y: Clone> Clone for OdeBuilder<F, Y> where
F: Fn(f64, &Y) -> Y,
Y: OdeType,
[src]
F: Fn(f64, &Y) -> Y,
Y: OdeType,
fn clone(&self) -> OdeBuilder<F, Y>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F: Debug, Y: Debug> Debug for OdeBuilder<F, Y> where
F: Fn(f64, &Y) -> Y,
Y: OdeType,
[src]
F: Fn(f64, &Y) -> Y,
Y: OdeType,
impl<F, Y> Default for OdeBuilder<F, Y> where
F: Fn(f64, &Y) -> Y,
Y: OdeType,
[src]
F: Fn(f64, &Y) -> Y,
Y: OdeType,
Auto Trait Implementations
impl<F, Y> RefUnwindSafe for OdeBuilder<F, Y> where
F: RefUnwindSafe,
Y: RefUnwindSafe,
F: RefUnwindSafe,
Y: RefUnwindSafe,
impl<F, Y> Send for OdeBuilder<F, Y> where
F: Send,
Y: Send,
F: Send,
Y: Send,
impl<F, Y> Sync for OdeBuilder<F, Y> where
F: Sync,
Y: Sync,
F: Sync,
Y: Sync,
impl<F, Y> Unpin for OdeBuilder<F, Y> where
F: Unpin,
Y: Unpin,
F: Unpin,
Y: Unpin,
impl<F, Y> UnwindSafe for OdeBuilder<F, Y> where
F: UnwindSafe,
Y: UnwindSafe,
F: UnwindSafe,
Y: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,