Package mikera.vectorz

Examples of mikera.vectorz.Vector.innerProduct()


        for( int i = 0; i < u.length; i++ ) {
            Vector a = u[i];

            for( int j = i+1; j < u.length; j++ ) {
//                double val = VectorVectorMult.innerProd(a,u[j]);
                double val = a.innerProduct(u[j]).get();
                if( !(Math.abs(val) <= tol))
                    return false;
            }
        }
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.