i use the routines *qwgrf and the *orgqr to generate the Q and R .
However if the matrix is tall ie more rows than coloumns these routines just dont work (my mistake ) also while using *orgqr
it requires the mtrix to passed as an arguement. given that for tall matrices Q will be square which matrix should be passed as an arguement.
The routine works just fine for square and wide but for tall i am not able to fiqure it out.
in the code attached the matrix size is 36 elemnts, 6*6 square, 9*4 tall, 4*9 wide.
arguents passed to the executable can be either of the three eg. ./a.out 9 4