Package no.uib.cipr.matrix

Examples of no.uib.cipr.matrix.LQ.factor()


        assertEquals(A, LQ.factorize(A));
    }

    public void testFactor() {
        LQ lq = new LQ(A.numRows(), A.numColumns());
        assertEquals(A, lq.factor(new DenseMatrix(A)));
    }

    public void testRepeatFactor() {
        LQ lq = new LQ(A.numRows(), A.numColumns());
        lq.factor(new DenseMatrix(A));
View Full Code Here


        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);
    }
View Full Code Here

    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);
    }

    public void testStaticFactorizeNonSquare() {
        assertEquals(Ac, LQ.factorize(Ac));
View Full Code Here

        assertEquals(Ac, LQ.factorize(Ac));
    }

    public void testFactorNonSquare() {
        LQ lq = new LQ(Ac.numRows(), Ac.numColumns());
        assertEquals(Ac, lq.factor(new DenseMatrix(Ac)));
    }

    public void testRepeatFactorNonSquare() {
        LQ lq = new LQ(Ac.numRows(), Ac.numColumns());
        lq.factor(new DenseMatrix(Ac));
View Full Code Here

        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);
    }
View Full Code Here

    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);
    }

    private void assertEquals(Matrix A, LQ lq) {
        assertEquals(A, lq.getL().mult(lq.getQ(), A.copy().zero()));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.