Skip to main content

orthogonalize

Function orthogonalize 

Source
pub(crate) fn orthogonalize<T: Real>(
    q: &DenseBlock<T>,
    x: &mut [T],
    h: &mut [T],
    eta: T,
) -> (T, u8)
Expand description

Algorithm D: x ← (I − QQᵀ)x against the columns of q (q.rows = x.len()), accumulating the coefficients into h (length q.cols). Returns (‖x‖, passes).