Skip to main content

ldl

Function ldl 

Source
pub fn ldl<T: Scalar, S: Data<Elem = T>>(
    a: &ArrayBase<S, Ix2>,
    lower: bool,
    hermitian: bool,
) -> Result<LdlFactors<T>>
Expand description

The Bunch-Kaufman factorisation of a symmetric or Hermitian matrix (SciPy’s ldl, LAPACK’s sytf2/hetf2): A = L D Lᴴ (or U D Uᴴ with lower = false), D block diagonal with 1 × 1 and 2 × 2 blocks, and L a row permutation of a unit triangular matrix. A 2 × 2 pivot is taken when no diagonal entry is large enough relative to its column, α = (1 + √17)/8, which bounds the growth of the entries for indefinite matrices. Only the lower (or upper) triangle is read; hermitian = false factorises a complex symmetric matrix, A = L D Lᵀ.