Note: a rank-revealing pivoting scheme is employed, potentially resulting in pivot distinctly different from ordinary "qr".
gpuQr(x, tol = 1e-07)
Bjorck, Ake (1996) Numerical methods for least squares problems. SIAM.
Golub, Gene H. and Van Loan, C. F. (1996) Matrix Computations, Ed. 3, ch. 5.
# get some random data of any shape at all
x <- matrix(runif(25), 5, 5)
qr <- gpuQr(x)
print(qr)
Run the code above in your browser using DataLab