ZPTSV Example

To solve the equations

Ax = b,

where A is the Hermitian positive definite tridiagonal matrix

A = $\displaystyle \left(\vphantom{
\begin{array}{ccccc}
16.0 & 16.0 - 16.0 i & 0 ...
...0 i & 46.0 & 1.0 + 4.0 i \\
0 & 0 & 1.0 - 4.0 i & 21.0
\end{array} }\right.$$\displaystyle \begin{array}{ccccc}
16.0 & 16.0 - 16.0 i & 0 & 0 \\
16.0 + 1...
...18.0 - 9.0 i & 46.0 & 1.0 + 4.0 i \\
0 & 0 & 1.0 - 4.0 i & 21.0
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{ccccc}
16.0 & 16.0 - 16.0 i & 0 ...
...0 i & 46.0 & 1.0 + 4.0 i \\
0 & 0 & 1.0 - 4.0 i & 21.0
\end{array} }\right)$

and

b = $\displaystyle \left(\vphantom{
\begin{array}{r}
64.0 + 16.0 i \\
93.0 + 62.0 i \\
78.0 - 80.0 i \\
14.0 - 27.0 i
\end{array} }\right.$$\displaystyle \begin{array}{r}
64.0 + 16.0 i \\
93.0 + 62.0 i \\
78.0 - 80.0 i \\
14.0 - 27.0 i
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{r}
64.0 + 16.0 i \\
93.0 + 62.0 i \\
78.0 - 80.0 i \\
14.0 - 27.0 i
\end{array} }\right)$.

Details of the LDLH factorization of A are also output.

Example program
Example data
Example results