Package org.ejml.simple

Examples of org.ejml.simple.SimpleMatrix.svd()


        checkUncountable(NormOps.inducedP2(zeroMatrix));

        // make sure the largest singular value is being returned not just the first
        for( int i = 0; i < 20; i++ ) {
            SimpleMatrix A = SimpleMatrix.random(5,5,-10,10,rand);
            double largest = A.svd().getW().get(0);

            assertEquals(largest,NormOps.inducedP2(A.getMatrix()),1e-8);
        }
    }
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.