Examples of UncontractIndices


Examples of cc.redberry.transformation.contractions.UncontractIndices

        this.term = term;
        this.allowDiffStates = allowDiffStates;
    }

    private void initialize() {
        UncontractIndices uncontractIndicesTransformation =
                new UncontractIndices(TensorUtils.getAllIndicesNames(factoredOut));
        term = uncontractIndicesTransformation.renameIndicesAndBuidKroneckers(term);
        factoredOut.add(uncontractIndicesTransformation.getKroneckers());
        factorsIndicesNames = new IntArrayBuffer(TensorUtils.getAllIndicesNames(factoredOut));
        termIndicesNames = new IntArrayList(TensorUtils.getAllIndicesNames(term));
        //TODO investigate cloning
        //factors.addAll(factoredOut.clone());
        factors.add(factoredOut);
View Full Code Here

Examples of cc.redberry.transformation.contractions.UncontractIndices

        this.term = term;
        this.allowDiffStates = allowDiffStates;
    }

    private void initialize() {
        UncontractIndices uncontractIndicesTransformation =
                new UncontractIndices(TensorUtils.getAllIndicesNames(factoredOut));
        term = uncontractIndicesTransformation.renameIndicesAndBuidKroneckers(term);
        factoredOut.add(uncontractIndicesTransformation.getKroneckers());
        factorsIndicesNames = new IntArrayBuffer(TensorUtils.getAllIndicesNames(factoredOut));
        termIndicesNames = new IntArrayList(TensorUtils.getAllIndicesNames(term));
        //TODO investigate cloning
        //factors.addAll(factoredOut.clone());
        factors.add(factoredOut);
View Full Code Here

Examples of cc.redberry.transformation.contractions.UncontractIndices

                    if (!mappingCollectedTensor.isEmpty())
                        ApplyIndexMappingDirectTransformation.INSTANCE.perform(collectedTensor, mappingCollectedTensor);
                    continue OUT_FOR;
                }

            UncontractIndices uncontractIndicesTransformation =
                    new UncontractIndices(TensorUtils.getAllIndicesNames(split.factoredOut));
            split.collectedTerm = uncontractIndicesTransformation.renameIndicesAndBuidKroneckers(split.collectedTerm);
            split.factoredOut.add(uncontractIndicesTransformation.getKroneckers());

            CollectedTerm newTerm = new CollectedTerm(split.collectedTerm, split.factoredOut);
            collectedTerms.add(newTerm);
        }
    }
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.