pub trait Minimizer {
// Required method
fn minimize<F: Fn(ArrayView1<'_, f64>) -> f64>(
&self,
func: F,
args: ArrayView1<'_, f64>,
) -> Array1<f64>;
}
Expand description
A general minimizer trait.
Required Methods§
Sourcefn minimize<F: Fn(ArrayView1<'_, f64>) -> f64>(
&self,
func: F,
args: ArrayView1<'_, f64>,
) -> Array1<f64>
fn minimize<F: Fn(ArrayView1<'_, f64>) -> f64>( &self, func: F, args: ArrayView1<'_, f64>, ) -> Array1<f64>
Minimizes the given function returned scalar value by exploring the parameter space. May or may not use numerical differential, depending on particular implementation.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.