pub struct Quadratic { /* private fields */ }Expand description
Separable quadratic f(x) = Σ (xᵢ − cᵢ)².
Strictly convex with a single global minimum of 0 at the center c. Its
gradient is 2(x − c) and its Hessian is 2·I.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Quadratic
impl RefUnwindSafe for Quadratic
impl Send for Quadratic
impl Sync for Quadratic
impl Unpin for Quadratic
impl UnsafeUnpin for Quadratic
impl UnwindSafe for Quadratic
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more