Пример #1
0
 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);
 }
Пример #2
0
 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);
 }
Пример #3
0
 public void testFactor() {
   RQ c = new RQ(A.numRows(), A.numColumns());
   assertEquals(A, c.factor(new DenseMatrix(A)));
 }