int minStride = Math.min(height,width);
Matrix Q = result.getQ().toMatrix();
Matrix R = result.getR().toMatrix();
assertTrue(Q.rowCount() == height && Q.columnCount() == height);
assertTrue(R.rowCount() == (compact ? minStride : height));
assertTrue(R.columnCount() == width);
// see if Q has the expected properties
assertTrue(Q.isOrthogonal(1e-8));