Example program for ztrsen
This example reorders the Schur factorization of the matrix
A
=
Q
T
Q
H
such that the eigenvalues stored in elements
t
11
and
t
44
appear as the leading elements on the diagonal of the reordered matrix
T
~
, where
T
=
-
6.0004
-
6.9999
i
0.3637
-
0.3656
i
-
0.1880
+
0.4787
i
0.8785
-
0.2539
i
0.0000
+
0.0000
i
-
5.0000
+
2.0060
i
-
0.0307
-
0.7217
i
-
0.2290
+
0.1313
i
0.0000
+
0.0000
i
0.0000
+
0.0000
i
7.9982
-
0.9964
i
0.9357
+
0.5359
i
0.0000
+
0.0000
i
0.0000
+
0.0000
i
0.0000
+
0.0000
i
3.0023
-
3.9998
i
and
Q
=
-
0.8347
-
0.1364
i
-
0.0628
+
0.3806
i
0.2765
-
0.0846
i
0.0633
-
0.2199
i
0.0664
-
0.2968
i
0.2365
+
0.5240
i
-
0.5877
-
0.4208
i
0.0835
+
0.2183
i
-
0.0362
-
0.3215
i
0.3143
-
0.5473
i
0.0576
-
0.5736
i
0.0057
-
0.4058
i
0.0086
+
0.2958
i
-
0.3416
-
0.0757
i
-
0.1900
-
0.1600
i
0.8327
-
0.1868
i
.
The original matrix
A
is given in
zunghr
.
f90 source code
Input data file
Expected results