qr decomposition for real matrices, is.matrix, as.matrix