Package no.uib.cipr.matrix

Examples of no.uib.cipr.matrix.QR


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

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


        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));
        assertEquals(A, qr);
        qr.factor(new DenseMatrix(A));
        assertEquals(A, qr);
    }
View Full Code Here

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

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

        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));
        assertEquals(Ar, qr);
        qr.factor(new DenseMatrix(Ar));
        assertEquals(Ar, qr);
    }
View Full Code Here

            }
        }
       
        long start = System.currentTimeMillis();
       
        QR qr = QR.factorize(A);
        B.set(qr.getR());
       
        long end = System.currentTimeMillis();
       
        System.out.println(
            "Total time: " + (end - start) + " millisecs.");
View Full Code Here

                    }
                }
            }*/
               
            // this function should work inplace like Lapack's
            QR qr = QR.factorize(A);
            UpperTriangDenseMatrix R = qr.getR();
           
            A.zero();
           
            // now zero out the lower diagonal
            /*for (int j=0; j<numColumns; ++j) {
View Full Code Here

TOP

Related Classes of no.uib.cipr.matrix.QR

Copyright © 2018 www.massapicom. 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.