ZGTSV Example

To solve the equations

Ax = b,

where A is the tridiagonal matrix

A = $\displaystyle \left(\vphantom{
\begin{array}{ccccc}
-1.3 + 1.3i & 2.0 - 1.0i ...
...i & 1.0 - 1.0i \\
0 & 0 & 0 & 1.0 + 1.0i & -3.3 + 1.3i
\end{array} }\right.$$\displaystyle \begin{array}{ccccc}
-1.3 + 1.3i & 2.0 - 1.0i & 0 & 0 & 0 \\
...
...0.3 + 4.3i & 1.0 - 1.0i \\
0 & 0 & 0 & 1.0 + 1.0i & -3.3 + 1.3i
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{ccccc}
-1.3 + 1.3i & 2.0 - 1.0i ...
...i & 1.0 - 1.0i \\
0 & 0 & 0 & 1.0 + 1.0i & -3.3 + 1.3i
\end{array} }\right)$

and

b = $\displaystyle \left(\vphantom{
\begin{array}{c}
2.4 - 5.0i \\
3.4 + 18.2i \\
-14.7 + 9.7i \\
31.9 - 7.7i \\
-1.0 + 1.6i
\end{array} }\right.$$\displaystyle \begin{array}{c}
2.4 - 5.0i \\
3.4 + 18.2i \\
-14.7 + 9.7i \\
31.9 - 7.7i \\
-1.0 + 1.6i
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{c}
2.4 - 5.0i \\
3.4 + 18.2i \\
-14.7 + 9.7i \\
31.9 - 7.7i \\
-1.0 + 1.6i
\end{array} }\right)$.

Example program
Example data
Example results