ZGESV Example

To solve the equations

Ax = b,

where A is the general matrix

A = $\displaystyle \left(\vphantom{
\begin{array}{rrrr}
-1.34 + 2.55 i & 0.28 + 3....
...0.39 i & -0.56 + 1.47 i & -0.83 - 0.69 i & -1.96 + 0.67 i
\end{array} }\right.$$\displaystyle \begin{array}{rrrr}
-1.34 + 2.55 i & 0.28 + 3.17 i & -6.39 - 2.2...
...
2.41 + 0.39 i & -0.56 + 1.47 i & -0.83 - 0.69 i & -1.96 + 0.67 i
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{rrrr}
-1.34 + 2.55 i & 0.28 + 3....
...0.39 i & -0.56 + 1.47 i & -0.83 - 0.69 i & -1.96 + 0.67 i
\end{array} }\right)$

and

b = $\displaystyle \left(\vphantom{
\begin{array}{c}
26.26 + 51.78 i \\
6.43 - 8.68 i \\
-5.75 + 25.31 i \\
1.16 + 2.57 i
\end{array} }\right.$$\displaystyle \begin{array}{c}
26.26 + 51.78 i \\
6.43 - 8.68 i \\
-5.75 + 25.31 i \\
1.16 + 2.57 i
\end{array}$$\displaystyle \left.\vphantom{
\begin{array}{c}
26.26 + 51.78 i \\
6.43 - 8.68 i \\
-5.75 + 25.31 i \\
1.16 + 2.57 i
\end{array} }\right)$.

Details of the LU factorization of A are also output.

Example program
Example data
Example results