Example program for dgeqpf
This example finds the basic solutions for 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.09
0.14
-
0.46
0.68
1.29
-
1.56
0.20
0.29
1.09
0.51
-
1.48
-
0.43
0.89
-
0.71
-
0.96
-
1.09
0.84
0.77
2.11
-
1.27
0.08
0.55
-
1.13
0.14
1.74
-
1.59
-
0.72
1.06
1.24
0.34
and
B
=
-
0.01
-
0.04
0.04
-
0.03
0.05
0.01
-
0.03
-
0.02
0.02
0.05
-
0.06
0.07
.
Here
A
is approximately rank-deficient, and hence it is preferable to use
dgeqpf
rather than
dgeqrf
.
f90 source code
Input data file
Expected results