Package stallone.api.algebra

Examples of stallone.api.algebra.AlgebraUtilities


    public void testDiagMultiplication() {
        int size = 10;
       
        IDoubleArray D = instance.diag(10, 1);
        IDoubleArray matrix = instance.matrix(size, size, 2);
        AlgebraUtilities util = new AlgebraUtilities();
        IDoubleArray result = util.multiplyElementsToNew(matrix, D);
       
        IDoubleArray expResult = instance.diag(size, 2);
       
        assertArrayEquals(expResult.getArray(), result.getArray(), delta);
    }
View Full Code Here

TOP

Related Classes of stallone.api.algebra.AlgebraUtilities

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.