Skip to main content

expand

Function expand 

Source
pub(crate) fn expand<T: Real>(
    basis: &[T],
    rows: usize,
    ncols: usize,
    w: &mut [T],
    eta: T,
    floor: T,
    rng: &mut Rng,
    reorth: &mut usize,
) -> T
Expand description

Algorithm E on the first ncols columns of basis (rows rows); on return w holds v_{ncols+1}. Returns the coupling coefficient (0 on breakdown). reorth counts the second DGKS passes.