Module prelude

Source
Expand description

Use stepwise::prelude::* for a ‘no fuss’ include everything approach.

metrics, problems, algos are brought into scope at the module level, so an individual metric would be refered to as metrics::MovingAvg and an algorithm as algos::GradientDescent

Re-exports§

pub use crate::algos;
pub use crate::fail_after_iters;
pub use crate::fixed_iters;
pub use crate::metrics;
pub use crate::metrics::Metric;
pub use crate::metrics::StatefulMetric;
pub use crate::problems;
pub use crate::samplers;
pub use crate::with_timeout;
pub use crate::Algo;
pub use crate::BoxedDriver;
pub use crate::BoxedError;
pub use crate::Driver;
pub use crate::DriverError;
pub use crate::DynDriver;
pub use crate::RecoveryFile;

Macros§

assert_approx_eq
Assert that two values are approximately equal.
assert_approx_ne
Assert that two values are comparable, but approximately not-equal.

Traits§

VectorExt
Basic linear algebra functions.

Functions§

format_duration
Formats a duration in the form 05h-02m-07s-045ms