Package no.uib.cipr.matrix

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


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

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

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


        assertEquals(A, qr.factor(new DenseMatrix(A)));
    }

    public void testRepeatFactor() {
        QR qr = new QR(A.numRows(), A.numColumns());
        qr.factor(new DenseMatrix(A));
        assertEquals(A, qr);
        qr.factor(new DenseMatrix(A));
        assertEquals(A, qr);
    }
View Full Code Here

    public void testRepeatFactor() {
        QR qr = new QR(A.numRows(), A.numColumns());
        qr.factor(new DenseMatrix(A));
        assertEquals(A, qr);
        qr.factor(new DenseMatrix(A));
        assertEquals(A, qr);
    }

    public void testStaticFactorizeNonSquare() {
        assertEquals(Ar, QR.factorize(Ar));
View Full Code Here

        assertEquals(Ar, QR.factorize(Ar));
    }

    public void testFactorNonSquare() {
        QR qr = new QR(Ar.numRows(), Ar.numColumns());
        assertEquals(Ar, qr.factor(new DenseMatrix(Ar)));
    }

    public void testRepeatFactorNonSquare() {
        QR qr = new QR(Ar.numRows(), Ar.numColumns());
        qr.factor(new DenseMatrix(Ar));
View Full Code Here

        assertEquals(Ar, qr.factor(new DenseMatrix(Ar)));
    }

    public void testRepeatFactorNonSquare() {
        QR qr = new QR(Ar.numRows(), Ar.numColumns());
        qr.factor(new DenseMatrix(Ar));
        assertEquals(Ar, qr);
        qr.factor(new DenseMatrix(Ar));
        assertEquals(Ar, qr);
    }
View Full Code Here

    public void testRepeatFactorNonSquare() {
        QR qr = new QR(Ar.numRows(), Ar.numColumns());
        qr.factor(new DenseMatrix(Ar));
        assertEquals(Ar, qr);
        qr.factor(new DenseMatrix(Ar));
        assertEquals(Ar, qr);
    }

    private void assertEquals(Matrix A, QR qr) {
        assertEquals(A, qr.getQ().mult(qr.getR(), 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.