QRDecomposition<DenseMatrix64F> alg = createQRDecomposition();
SimpleMatrix A = new SimpleMatrix(height,width);
RandomMatrices.setRandom(A.getMatrix(),rand);
assertTrue(alg.decompose(A.copy().getMatrix()));
int minStride = Math.min(height,width);
SimpleMatrix Q = new SimpleMatrix(height,compact ? minStride : height);
alg.getQ(Q.getMatrix(), compact);