Example program for zherfs
This example solves the system of equations
A
X
=
B
using iterative refinement and to compute the forward and backward error bounds, where
A
=
-
1.36
+
0.00
i
1.58
+
0.90
i
2.21
-
0.21
i
3.91
+
1.50
i
1.58
-
0.90
i
-
8.87
+
0.00
i
-
1.84
-
0.03
i
-
1.78
+
1.18
i
2.21
+
0.21
i
-
1.84
+
0.03
i
-
4.63
+
0.00
i
0.11
+
0.11
i
3.91
-
1.50
i
-
1.78
-
1.18
i
0.11
-
0.11
i
-
1.84
+
0.00
i
and
B
=
7.79
+
0
5.48
i
-
35.39
+
18.01
i
-
0.77
-
16.05
i
4.23
-
70.02
i
-
9.58
+
0
3.88
i
-
24.79
-
0
8.40
i
2.98
-
10.18
i
28.68
-
39.89
i
.
Here
A
is Hermitian indefinite and must first be factorized by
zhetrf
.
f90 source code
Input data file
Expected results