public void testRepeatFactor() {
   RQ rq = new RQ(A.numRows(), A.numColumns());
   rq.factor(new DenseMatrix(A));
   assertEquals(A, rq);
   rq.factor(new DenseMatrix(A));
   assertEquals(A, rq);
 }
 public void testFactor() {
   RQ c = new RQ(A.numRows(), A.numColumns());
   assertEquals(A, c.factor(new DenseMatrix(A)));
 }