Example program for zgtrfs
This example solves the equations
A
X
=
B
,
where
A
is the tridiagonal matrix
A
=
-
1.3
+
1.3
i
2.0
-
1.0
i
0
.0
i
+
0.0
0
.0
i
+
0.0
0
.0
i
+
0.0
1.0
-
2.0
i
-
1.3
+
1.3
i
2.0
+
1.0
i
0
.0
i
+
0.0
0
.0
i
+
0.0
0
.0
i
+
0.0
1.0
+
1.0
i
-
1.3
+
3.3
i
-
1.0
+
1.0
i
0
.0
i
+
0.0
0
.0
i
+
0.0
0
.0
i
+
0.0
2.0
-
3.0
i
-
0.3
+
4.3
i
1.0
-
1.0
i
0
.0
i
+
0.0
0
.0
i
+
0.0
0
.0
i
+
0.0
1.0
+
1.0
i
-
3.3
+
1.3
i
and
B
=
2.4
-
0
5.0
i
2.7
+
0
6.9
i
3.4
+
18.2
i
-
6.9
-
0
5.3
i
-
14.7
+
0
9.7
i
-
6.0
-
0
0.6
i
31.9
-
0
7.7
i
-
3.9
+
0
9.3
i
-
1.0
+
0
1.6
i
-
3.0
+
12.2
i
.
Estimates for the backward errors and forward errors are also output.
f90 source code
Input data file
Expected results