Package cc.redberry.core.indexmapping

Examples of cc.redberry.core.indexmapping.IndexMappingBufferTester


    public static Boolean compare1(Tensor u, Tensor v) {
        Indices freeIndices = u.getIndices().getFreeIndices();
        if (!freeIndices.equalsRegardlessOrder(v.getIndices().getFreeIndices()))
            return false;
        int[] free = freeIndices.getAllIndices().copy();
        IndexMappingBuffer tester = new IndexMappingBufferTester(free, false);
        IndexMappingBuffer buffer = IndexMappings.createPort(tester, u, v).take();
        if (buffer == null)
            return null;
        return buffer.getSignum();
    }
View Full Code Here


        else {
            int[] fromIndices = u.getIndices().getFreeIndices().getAllIndices().copy();
            for (int i = 0; i < fromIndices.length; ++i)
                fromIndices[i] = IndicesUtils.getNameWithType(fromIndices[i]);
//            long start = System.currentTimeMillis();
            buffer = IndexMappings.createPort(new IndexMappingBufferTester(fromIndices, false), u, v).take();
//            long stop = System.currentTimeMillis();
//            if (stop - start > 300) {
//                System.out.println("time " + (stop - start));
//
//                System.out.println(u);
View Full Code Here

TOP

Related Classes of cc.redberry.core.indexmapping.IndexMappingBufferTester

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.