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 testRepeatFactorNonSquare() { RQ rq = new RQ(Ac.numRows(), Ac.numColumns()); rq.factor(new DenseMatrix(Ac)); assertEquals(Ac, rq); rq.factor(new DenseMatrix(Ac)); assertEquals(Ac, rq); }
public void testFactor() { RQ c = new RQ(A.numRows(), A.numColumns()); assertEquals(A, c.factor(new DenseMatrix(A))); }