Package cc.redberry.core.transformations.symmetrization

Examples of cc.redberry.core.transformations.symmetrization.SymmetrizeTransformation


            int[] allIndices = addAll(allFreeVarIndices, allFreeArgIndices);
            SimpleIndices dIndices = IndicesFactory.createSimple(null, allIndices);
            SimpleTensor symmetric = simpleTensor("@!@#@##_AS@23@@#", dIndices);
            SimpleIndices allFreeVarIndicesI = IndicesFactory.createSimple(varIndices.getSymmetries(), allFreeVarIndices);
            Tensor derivative =
                    new SymmetrizeTransformation(allFreeVarIndicesI, true).transform(symmetric);

            derivative = applyIndexMapping(
                    derivative,
                    new Mapping(allIndices,
                            addAll(varIndices.getInverted().getAllIndices().copy(), allFreeArgIndices)),
View Full Code Here


        this.result = indices.getSymmetries().isTrivial() ? result.build() : symmetrize(result.build());
    }

    private Tensor symmetrize(Tensor result) {
        //todo rewrite this slag
        result = new SymmetrizeTransformation(indices, false).transform(result);
        result = ExpandTransformation.expand(result);

        if (!(result instanceof Sum))
            return result;
View Full Code Here

        this.result = indices.getSymmetries().isTrivial() ? result.build() : symmetrize(result.build());
    }

    private Tensor symmetrize(Tensor result) {
        //todo rewrite this slag
        result = new SymmetrizeTransformation(indices, false).transform(result);
        result = ExpandTransformation.expand(result);

        if (!(result instanceof Sum))
            return result;
View Full Code Here

            int[] allIndices = addAll(allFreeVarIndices, allFreeArgIndices);
            SimpleIndices dIndices = IndicesFactory.createSimple(null, allIndices);
            SimpleTensor symmetric = simpleTensor("@!@#@##_AS@23@@#", dIndices);
            SimpleIndices allFreeVarIndicesI = IndicesFactory.createSimple(varIndices.getSymmetries(), allFreeVarIndices);
            Tensor derivative =
                    new SymmetrizeTransformation(allFreeVarIndicesI, true).transform(symmetric);

            derivative = applyIndexMapping(
                    derivative,
                    new Mapping(allIndices,
                            addAll(varIndices.getInverted().getAllIndices().copy(), allFreeArgIndices)),
View Full Code Here

TOP

Related Classes of cc.redberry.core.transformations.symmetrization.SymmetrizeTransformation

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.