pub enum IvpResult<const N: usize> {
    FinalTimeReached(Coord<{ N }>),
    StepTooSmall(f64Coord<{ N }>),
    OdeRequestedExit(f64Coord<{ N }>, f64Coord<{ N }>),
    CallbackRequestedExit(f64Coord<{ N }>, f64Coord<{ N }>),
}
Expand description

Returned by solve_ivp

Variants

FinalTimeReached(Coord<{ N }>)

The final time t_1 was successfully reached. The first field is y(t_1)

StepTooSmall(f64Coord<{ N }>)

The next timestep would be smaller than 10 machine epsilons, so integration stopped. The first field is the time t_s when integration stopped, the second fild is y(t_s).

OdeRequestedExit(f64Coord<{ N }>, f64Coord<{ N }>)

If problem.ode_dot_y(t,y).1 == false for a pair of t,y that are part of the solution curve, this variant is returned.

CallbackRequestedExit(f64Coord<{ N }>, f64Coord<{ N }>)

After every integration step, callback(t,y) is called. If it returns false, this is returned. The first two fields is the last point where callback returned true and the last two fields are the next point where callback returned true.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.