Package cc.redberry.core.utils.stretces

Examples of cc.redberry.core.utils.stretces.StretchIteratorS


                //Creating array for permutation infos for current bijection.
//                permutationInfos[i] = new ArrayList<>();

                //Iterating through stretches of indices
                for (Stretch stretch : new StretchIteratorS(diffIds))
                    if (stretch.length == 1) { //Indices with unique index id (stretch.length == 1) [Non permutable indices].
                        //Corresponding contraction in from tensor
                        long fromIndexContraction = fromContractions[seedFromIndex][diffIdsPermutation[stretch.from]];
                        //Corresponding contraction in target tensor
                        long targetIndexContraction = targetContractions[seedTargetIndex][diffIdsPermutation[stretch.from]];
View Full Code Here


        int[] bijection = new int[data.length];
        Arrays.fill(bijection, -1);
        bijection[seed] = matchedIndex;

        for (Stretch stretch : new StretchIteratorS(diffIds))
            if (stretch.length == 1) {
                long fromIndexContraction = contractions[diffIdsPermutation[stretch.from]];
                long productIndexContraction = productContructions.contractions[matchedIndex][diffIdsPermutation[stretch.from]];

                if (getToIndexId(fromIndexContraction) != getToIndexId(productIndexContraction))
View Full Code Here

                //Creating array for permutation infos for current bijection.
//                permutationInfos[i] = new ArrayList<>();

                //Iterating through stretches of indices
                for (Stretch stretch : new StretchIteratorS(diffIds))
                    if (stretch.length == 1) { //Indices with unique index id (stretch.length == 1) [Non permutable indices].
                        //Corresponding contraction in from tensor
                        long fromIndexContraction = fromContractions[seedFromIndex][diffIdsPermutation[stretch.from]];
                        //Corresponding contraction in target tensor
                        long targetIndexContraction = targetContractions[seedTargetIndex][diffIdsPermutation[stretch.from]];
View Full Code Here

                //Creating array for permutation infos for current bijection.
//                permutationInfos[i] = new ArrayList<>();

                //Iterating through stretches of indices
                for (Stretch stretch : new StretchIteratorS(diffIds))
                    if (stretch.length == 1) { //Indices with unique index id (stretch.length == 1) [Non permutable indices].
                        //Corresponding contraction in from tensor
                        long fromIndexContraction = fromContractions[seedFromIndex][diffIdsPermutation[stretch.from]];
                        //Corresponding contraction in target tensor
                        long targetIndexContraction = targetContractions[seedTargetIndex][diffIdsPermutation[stretch.from]];
View Full Code Here

                //Creating array for permutation infos for current bijection.
//                permutationInfos[i] = new ArrayList<>();

                //Iterating through stretches of indices
                for (Stretch stretch : new StretchIteratorS(diffIds))
                    if (stretch.length == 1) { //Indices with unique index id (stretch.length == 1) [Non permutable indices].
                        //Corresponding contraction in from tensor
                        long fromIndexContraction = fromContractions[seedFromIndex][diffIdsPermutation[stretch.from]];
                        //Corresponding contraction in target tensor
                        long targetIndexContraction = targetContractions[seedTargetIndex][diffIdsPermutation[stretch.from]];
View Full Code Here

TOP

Related Classes of cc.redberry.core.utils.stretces.StretchIteratorS

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.