pub struct AndersonConfig {
pub m: usize,
pub damping: f32,
pub ridge: f32,
}Expand description
Anderson acceleration configuration for Sinkhorn fixed-point iterations.
This is intended as an optional speed-up for hard regimes (small (\varepsilon)). It does not change the fixed point; it only tries to reach it in fewer iterations.
Notes:
- We apply Anderson to the combined iterate (x = (\log u, \log v)).
- This is a heuristic: it can help a lot, do nothing, or (rarely) hurt.
Fields§
§m: usizeHistory size (typical: 3–8).
damping: f32Damping in ([0,1]). 1.0 = full Anderson step, 0.0 = no acceleration.
ridge: f32Ridge term added to the normal equations (helps with ill-conditioned history).
Trait Implementations§
Source§impl Clone for AndersonConfig
impl Clone for AndersonConfig
Source§fn clone(&self) -> AndersonConfig
fn clone(&self) -> AndersonConfig
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 moreSource§impl Debug for AndersonConfig
impl Debug for AndersonConfig
Source§impl Default for AndersonConfig
impl Default for AndersonConfig
impl Copy for AndersonConfig
Auto Trait Implementations§
impl Freeze for AndersonConfig
impl RefUnwindSafe for AndersonConfig
impl Send for AndersonConfig
impl Sync for AndersonConfig
impl Unpin for AndersonConfig
impl UnwindSafe for AndersonConfig
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