pub struct HestenesStiefel {}Expand description
Hestenes and Stiefel (HS) method
Formula: <\nabla f_{k+1}, (\nabla f_{k+1} - \nabla f_k)> / <(\nabla f_{k+1} - \nabla f_k), p_k>
Implementations§
Trait Implementations§
Source§impl Clone for HestenesStiefel
impl Clone for HestenesStiefel
impl Copy for HestenesStiefel
Source§impl Debug for HestenesStiefel
impl Debug for HestenesStiefel
Source§impl Default for HestenesStiefel
impl Default for HestenesStiefel
Source§impl<G, P, F> NLCGBetaUpdate<G, P, F> for HestenesStiefel
impl<G, P, F> NLCGBetaUpdate<G, P, F> for HestenesStiefel
Source§fn update(&self, dfk: &G, dfk1: &G, pk: &P) -> F
fn update(&self, dfk: &G, dfk1: &G, pk: &P) -> F
Update beta using the Hestenes-Stiefel method.
Formula: <\nabla f_{k+1}, (\nabla f_{k+1} - \nabla f_k)> / <(\nabla f_{k+1} - \nabla f_k), p_k>
§Example
let beta_method = HestenesStiefel::new();
let beta: f64 = beta_method.update(&dfk, &dfk1, &pk);Auto Trait Implementations§
impl Freeze for HestenesStiefel
impl RefUnwindSafe for HestenesStiefel
impl Send for HestenesStiefel
impl Sync for HestenesStiefel
impl Unpin for HestenesStiefel
impl UnsafeUnpin for HestenesStiefel
impl UnwindSafe for HestenesStiefel
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