is stored column major in a single array, as follows:
69707172737475767778
assertEquals(Ar, ql.factor(new DenseMatrix(Ar))); } public void testRepeatFactorNonSquare() { QL ql = new QL(Ar.numRows(), Ar.numColumns()); ql.factor(new DenseMatrix(Ar)); assertEquals(Ar, ql); ql.factor(new DenseMatrix(Ar)); assertEquals(Ar, ql); }
3334353637383940
} @Override protected void createPrimary() throws Exception { int n = Utilities.getInt(1, max); A = new DenseMatrix(n, n); Ad = Utilities.populate(A); }
42434445464748
assertEquals(A, RQ.factorize(A)); } public void testFactor() { RQ c = new RQ(A.numRows(), A.numColumns()); assertEquals(A, c.factor(new DenseMatrix(A))); }
47484950515253545556
assertEquals(A, c.factor(new DenseMatrix(A))); } 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); }
64656667686970
assertEquals(Ac, RQ.factorize(Ac)); } public void testFactorNonSquare() { RQ rq = new RQ(Ac.numRows(), Ac.numColumns()); assertEquals(Ac, rq.factor(new DenseMatrix(Ac))); }
assertEquals(Ac, rq.factor(new DenseMatrix(Ac))); } 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); }
assertEquals(A, LQ.factorize(A)); } public void testFactor() { LQ lq = new LQ(A.numRows(), A.numColumns()); assertEquals(A, lq.factor(new DenseMatrix(A))); }
assertEquals(A, lq.factor(new DenseMatrix(A))); } public void testRepeatFactor() { LQ lq = new LQ(A.numRows(), A.numColumns()); lq.factor(new DenseMatrix(A)); assertEquals(A, lq); lq.factor(new DenseMatrix(A)); assertEquals(A, lq); }
assertEquals(Ac, LQ.factorize(Ac)); } public void testFactorNonSquare() { LQ lq = new LQ(Ac.numRows(), Ac.numColumns()); assertEquals(Ac, lq.factor(new DenseMatrix(Ac))); }
assertEquals(Ac, lq.factor(new DenseMatrix(Ac))); } public void testRepeatFactorNonSquare() { LQ lq = new LQ(Ac.numRows(), Ac.numColumns()); lq.factor(new DenseMatrix(Ac)); assertEquals(Ac, lq); lq.factor(new DenseMatrix(Ac)); assertEquals(Ac, lq); }