Package no.uib.cipr.matrix

Examples of no.uib.cipr.matrix.SymmDenseEVD


        A = new FlexCompRowMatrix(n, n);
        Utilities.symmetryPopulate(A, b);

        // Need positive eigenvalues
        addDiagonal(A, shift);
        SymmDenseEVD evd = SymmDenseEVD.factorize(A);
        while (n > 0 && evd.getEigenvalues()[0] <= 0) {
            addDiagonal(A, shift);
            evd = SymmDenseEVD.factorize(A);
        }
    }
View Full Code Here


        L = null;
        U = null;
    }

    public void testLowerStaticFactorize() throws NotConvergedException {
        SymmDenseEVD evd = SymmDenseEVD.factorize(L);
        assertEquals(L, evd.getEigenvalues(), evd.getEigenvectors());
    }
View Full Code Here

        SymmDenseEVD evd = SymmDenseEVD.factorize(L);
        assertEquals(L, evd.getEigenvalues(), evd.getEigenvectors());
    }

    public void testUpperStaticFactorize() throws NotConvergedException {
        SymmDenseEVD evd = SymmDenseEVD.factorize(U);
        assertEquals(U, evd.getEigenvalues(), evd.getEigenvectors());
    }
View Full Code Here

        SymmDenseEVD evd = SymmDenseEVD.factorize(U);
        assertEquals(U, evd.getEigenvalues(), evd.getEigenvectors());
    }

    public void testLowerFactor() throws NotConvergedException {
        SymmDenseEVD evd = new SymmDenseEVD(A.numRows(), false);
        evd.factor(L.copy());
        assertEquals(L, evd.getEigenvalues(), evd.getEigenvectors());
    }
View Full Code Here

        evd.factor(L.copy());
        assertEquals(L, evd.getEigenvalues(), evd.getEigenvectors());
    }

    public void testUpperFactor() throws NotConvergedException {
        SymmDenseEVD evd = new SymmDenseEVD(A.numRows(), true);
        evd.factor(U.copy());
        assertEquals(U, evd.getEigenvalues(), evd.getEigenvectors());
    }
View Full Code Here

        evd.factor(U.copy());
        assertEquals(U, evd.getEigenvalues(), evd.getEigenvectors());
    }

    public void testLowerRepeatFactor() throws NotConvergedException {
        SymmDenseEVD evd = new SymmDenseEVD(A.numRows(), false);
        evd.factor(L.copy());
        assertEquals(L, evd.getEigenvalues(), evd.getEigenvectors());
        evd.factor(L.copy());
        assertEquals(L, evd.getEigenvalues(), evd.getEigenvectors());
    }
View Full Code Here

    }

    @Override
    protected void createSolver() throws Exception {
        // Get the extremal eigenvalues
        SymmDenseEVD evd = SymmDenseEVD.factorize(A);
        double[] eigs = evd.getEigenvalues();

        double eigmin = 1, eigmax = 1;
        if (eigs.length > 0) {
            eigmin = eigs[0];
            eigmax = eigs[eigs.length - 1];
View Full Code Here

        evd.factor(L.copy());
        assertEquals(L, evd.getEigenvalues(), evd.getEigenvectors());
    }

    public void testUpperRepeatFactor() throws NotConvergedException {
        SymmDenseEVD evd = new SymmDenseEVD(A.numRows(), true);
        evd.factor(U.copy());
        assertEquals(U, evd.getEigenvalues(), evd.getEigenvectors());
        evd.factor(U.copy());
        assertEquals(U, evd.getEigenvalues(), evd.getEigenvectors());
    }
View Full Code Here

TOP

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

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.