|
ezp
lightweight C++ wrapper for selected distributed solvers for linear systems
|
Solver for general band matrices. More...
#include <pgbsv.hpp>
Solver for general band matrices.
pgbsv solver supports KL=0 and/or KU=0, a zero (half) bandwidth would lead to unwanted warning message from ScaLAPACK. It solves the system of linear equations A * X = B with a general band matrix A. The band matrix A has KL sub-diagonals and KU super-diagonals. It shall be stored in the following format. The band storage scheme is illustrated by the following example, when M=N=6, KL=2, KU=1.
The lead dimension should be 2*(KL+KU)+1.
With zero based indexing, for a general band matrix A, the element at row i and column j is stored at A[IDX(i, j)].
The example usage can be seen as follows.