Example program for zgeqrf
This example solves the linear least squares problems
minimize
A
x
i
-
b
i
2
,
i
=
1
,
2
where
b
1
and
b
2
are the columns of the matrix
B
,
A
=
0.96
-
0.81
i
-
0.03
+
0.96
i
-
0.91
+
2.06
i
-
0.05
+
0.41
i
-
0.98
+
1.98
i
-
1.20
+
0.19
i
-
0.66
+
0.42
i
-
0.81
+
0.56
i
0.62
-
0.46
i
1.01
+
0.02
i
0.63
-
0.17
i
-
1.11
+
0.60
i
-
0.37
+
0.38
i
0.19
-
0.54
i
-
0.98
-
0.36
i
0.22
-
0.20
i
0.83
+
0.51
i
0.20
+
0.01
i
-
0.17
-
0.46
i
1.47
+
1.59
i
1.08
-
0.28
i
0.20
-
0.12
i
-
0.07
+
1.23
i
0.26
+
0.26
i
and
B
=
-
1.54
+
0.76
i
3.17
-
2.09
i
0.12
-
1.92
i
-
6.53
+
4.18
i
-
9.08
-
4.31
i
7.28
+
0.73
i
7.49
+
3.65
i
0.91
-
3.97
i
-
5.63
-
2.12
i
-
5.46
-
1.64
i
2.37
+
8.03
i
-
2.84
-
5.86
i
.
f90 source code
Input data file
Expected results