pub struct SubgradientResult {
pub point: Vec<f64>,
pub subgradient: Vec<f64>,
pub value: f64,
}Expand description
Result of a subgradient computation.
Fields§
§point: Vec<f64>Point at which the subgradient was computed.
subgradient: Vec<f64>A subgradient g such that f(y) >= f(x) + <g, y-x> for all y.
value: f64Function value f(x).
Trait Implementations§
Source§impl Clone for SubgradientResult
impl Clone for SubgradientResult
Source§fn clone(&self) -> SubgradientResult
fn clone(&self) -> SubgradientResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SubgradientResult
impl RefUnwindSafe for SubgradientResult
impl Send for SubgradientResult
impl Sync for SubgradientResult
impl Unpin for SubgradientResult
impl UnsafeUnpin for SubgradientResult
impl UnwindSafe for SubgradientResult
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