Back to LAPACK/BLAS
la.linearSolvers.solveBanded
Solve a banded system Ax = b where A is a general banded matrix.
Syntax
la.linearSolvers.solveBanded(AB, b, n, kl, ku)
Description
Solve a banded system Ax = b where A is a general banded matrix. A banded matrix has non-zero elements only within kl diagonals below and ku diagonals above the main diagonal. The banded matrix is stored in band storage format: - Row i of the band array contains diagonal (i - kl) - The band array has (2*kl + ku + 1) rows and n columns Note: This function converts the banded format to dense and uses the general solver. For large sparse banded systems, consider using specialized routines.
Parameters
| Name | Description |
|---|---|
| AB | - Banded matrix in LAPACK band storage format |
| b | - Right-hand side vector or matrix |
| n | - Matrix dimension |
| kl | - Number of sub-diagonals |
| ku | - Number of super-diagonals |
Returns
SolveResult