Struct argmin::solver::conjugategradient::beta::HestenesStiefel
source · 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
source§fn clone(&self) -> HestenesStiefel
fn clone(&self) -> HestenesStiefel
Returns a copy 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 moresource§impl Debug for HestenesStiefel
impl Debug for HestenesStiefel
source§impl Default for HestenesStiefel
impl Default for HestenesStiefel
source§fn default() -> HestenesStiefel
fn default() -> HestenesStiefel
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for HestenesStiefel
impl<'de> Deserialize<'de> for HestenesStiefel
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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);
source§impl Serialize for HestenesStiefel
impl Serialize for HestenesStiefel
impl Copy for HestenesStiefel
Auto Trait Implementations§
impl Freeze for HestenesStiefel
impl RefUnwindSafe for HestenesStiefel
impl Send for HestenesStiefel
impl Sync for HestenesStiefel
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.