Skip to main content

orthogonalize_prefix

Function orthogonalize_prefix 

Source
pub(crate) fn orthogonalize_prefix<T: Real>(
    data: &[T],
    rows: usize,
    ncols: usize,
    x: &mut [T],
    eta: T,
    h: Option<&mut [T]>,
) -> (T, u8)
Expand description

Algorithm D as orthogonalize_against, accumulating the coefficients of both passes into h (length ≥ ncols) when given — the Arnoldi column of Chapter 12.6. The arithmetic on x is the same either way.