pub struct CostFunction {
pub f: fn(_: &Array1<f64>, _: &Array1<f64>) -> f64,
pub d: fn(_: &Array1<f64>, _: &Array1<f64>) -> Array1<f64>,
}
Fields
f: fn(_: &Array1<f64>, _: &Array1<f64>) -> f64
d: fn(_: &Array1<f64>, _: &Array1<f64>) -> Array1<f64>
Implementations
Auto Trait Implementations
impl RefUnwindSafe for CostFunction
impl Send for CostFunction
impl Sync for CostFunction
impl Unpin for CostFunction
impl UnwindSafe for CostFunction
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more