Package org.ejml.factory

Examples of org.ejml.factory.EigenDecomposition


        checkSymmetricMatrix(alg,1,1,1,2);
    }

    public void checkWithSingularSymm() {

        EigenDecomposition alg = createDecomposition();

        checkSymmetricMatrix(alg,1,0,1,2);
    }
View Full Code Here


    }

    public void checkSmallValue( boolean symmetric) {

//        System.out.println("Symmetric = "+symmetric);
        EigenDecomposition alg = createDecomposition();

        for( int i = 0; i < 20; i++ ) {
            DenseMatrix64F A = symmetric ?
                    RandomMatrices.createSymmetric(4,-1,1,rand) :
                    RandomMatrices.createRandom(4,4,-1,1,rand);
View Full Code Here

        }
    }

    public void checkLargeValue( boolean symmetric) {

        EigenDecomposition alg = createDecomposition();

        for( int i = 0; i < 20; i++ ) {
            DenseMatrix64F A = symmetric ?
                    RandomMatrices.createSymmetric(4,-1,1,rand) :
                    RandomMatrices.createRandom(4,4,-1,1,rand);
View Full Code Here

        System.out.println("done");
    }

    public void checkRandomMatrices( int N ) {
        System.out.println("N = "+N);
        EigenDecomposition decomp = DecompositionFactory.eig(N,true);

        DenseMatrix64F A = new DenseMatrix64F(N,N);

        for( int i = 0; i < 1000; i++ ) {
            long seed = rand.nextLong();
            System.out.print("Date = "+new Date()+" Seed = "+seed);

            Random localRand = new Random(seed);

            RandomMatrices.createSymmetric(A,-1,1,localRand);

            if( !decomp.decompose(A) ) {
                System.out.println("Decomposition failed");
                return;
            }

            double error = DecompositionFactory.quality(A,decomp);
View Full Code Here

TOP

Related Classes of org.ejml.factory.EigenDecomposition

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.