Hi, I'm pretty new to scalapack and am starting to work with it to solve some problems. One thing I can't figure out at first glance is where do the return values get stored after calling any subroutines (specifically PDGEQRF). What I actually need to do is read a matrix from a file, calculate QR factorization and then write results to another file.

I've found one example which does something similar (only it solves for a system of linear equations instead of QR factorization which I need)

http://www.netlib.org/scalapack/slug/no ... 0000000000

I'm currently trying to rewrite the above program to suit my needs so any pointers would be greatly appreciated, thanks!!