DGBSV Example

To solve the equations

Ax = b,

where A is the band matrix

A = $\displaystyle \left(\vphantom{
\begin{array}{rrrr}
-0.23 & 2.54 & -3.66 & 0 \...
... \\
0 & 2.56 & 2.46 & 4.07 \\
0 & 0 & -4.78 & -3.82
\end{array} }\right.$$\displaystyle \begin{array}{rrrr}
-0.23 & 2.54 & -3.66 & 0 \\
-6.98 & 2.46 ...
...3 & -2.13 \\
0 & 2.56 & 2.46 & 4.07 \\
0 & 0 & -4.78 & -3.82
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{rrrr}
-0.23 & 2.54 & -3.66 & 0 \...
... \\
0 & 2.56 & 2.46 & 4.07 \\
0 & 0 & -4.78 & -3.82
\end{array} }\right)$  and  b = $\displaystyle \left(\vphantom{
\begin{array}{r}
4.42 \\
27.13 \\
-6.14 \\
10.50
\end{array} }\right.$$\displaystyle \begin{array}{r}
4.42 \\
27.13 \\
-6.14 \\
10.50
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{r}
4.42 \\
27.13 \\
-6.14 \\
10.50
\end{array} }\right)$.

Details of the LU factorization of A are also output.

Example program
Example data
Example results