Example program for dgerqf
This example finds the minimum norm solution to the underdetermined equations
A
x
=
b
where
A
=
-
5.42
3.28
-
3.68
0.27
2.06
0.46
-
1.65
-
3.40
-
3.20
-
1.03
-
4.06
-
0.01
-
0.37
2.35
1.90
4.31
-
1.76
1.13
-
3.15
-
0.11
1.99
-
2.70
0.26
4.50
and
b
=
-
2.87
1.63
-
3.52
0.45
.
The solution is obtained by first obtaining an
R
Q
factorization of the matrix
A
.
Note that the block size (NB) of
64
assumed in this example is not realistic for such a small problem, but should be suitable for large problems.
f90 source code
Input data file
Expected results