Example program for dgeqrt
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.57
-
1.28
-
0.39
0.25
-
1.93
1.08
-
0.31
-
2.14
2.30
0.24
0.40
-
0.35
-
1.93
0.64
-
0.66
0.08
0.15
0.30
0.15
-
2.13
-
0.02
1.03
-
1.43
0.50
and
B
=
-
2.67
0.41
-
0.55
-
3.10
3.34
-
4.01
-
0.77
2.76
0.48
-
6.17
4.10
0.21
.
f90 source code
Input data file
Expected results