Skip to main content

solve_banded

Function solve_banded 

Source
pub fn solve_banded<T: Scalar, S: Data<Elem = T>, S2: Data<Elem = T>>(
    lu: (usize, usize),
    ab: &ArrayBase<S, Ix2>,
    b: &ArrayBase<S2, Ix1>,
) -> Result<Array1<T>>
Expand description

Solves A x = b for a banded A with l subdiagonals and u superdiagonals, given in LAPACK band storage ab[u + i − j, j] = A[i, j] (SciPy’s solve_banded((l, u), ab, b)), by Gaussian elimination with partial pivoting within the band (LAPACK’s gbsv): O(n l (l + u)) operations. Row interchanges widen the upper band of U to l + u.