Package cc.redberry.core.transformations

Examples of cc.redberry.core.transformations.TransformationCollection


                        for (int si = solution.length - 1; si >= 0; --si)
                            solution[si] = (Expression) coef.transform(solution[si]);
                    }
                if (!keepFreeParameters)
                    for (int si = solution.length - 1; si >= 0; --si)
                        solution[si] = (Expression) new TransformationCollection(zeroSubs).transform(solution[si]);


                //substituting the renamed tensors combinations
                for (Expression sub : scalarSubs)
                    for (int si = solution.length - 1; si >= 0; --si)
View Full Code Here


        }


        ArrayList<Transformation> allRules = new ArrayList<>(Arrays.asList(rules));
        allRules.add(0, EliminateMetricsTransformation.ELIMINATE_METRICS);
        Transformation simplification = new TransformationCollection(allRules);

        ArrayList<Expression> reducedSystem = new ArrayList<>();
        for (Tensor equation : zeroReduced) {
            int count = ITERATION_LIMIT;
            do {
                for (Expression solution : generalSolutions)
                    equation = solution.transform(equation);

                equation = ExpandTransformation.expand(equation, simplification);
                equation = simplification.transform(equation);
                equation = CollectNonScalarsTransformation.collectNonScalars(equation);
                if (!TensorUtils.containsSimpleTensors(equation, varsNames))
                    break;

            } while (count-- > 0);
View Full Code Here

                        for (int si = solution.length - 1; si >= 0; --si)
                            solution[si] = (Expression) coef.transform(solution[si]);
                    }
                if (!keepFreeParameters)
                    for (int si = solution.length - 1; si >= 0; --si)
                        solution[si] = (Expression) new TransformationCollection(zeroSubs).transform(solution[si]);


                //substituting the renamed tensors combinations
                for (Expression sub : scalarSubs)
                    for (int si = solution.length - 1; si >= 0; --si)
View Full Code Here

        }


        ArrayList<Transformation> allRules = new ArrayList<>(Arrays.asList(rules));
        allRules.add(0, EliminateMetricsTransformation.ELIMINATE_METRICS);
        Transformation simplification = new TransformationCollection(allRules);

        ArrayList<Expression> reducedSystem = new ArrayList<>();
        for (Tensor equation : zeroReduced) {
            int count = ITERATION_LIMIT;
            do {
                for (Expression solution : generalSolutions)
                    equation = solution.transform(equation);

                equation = ExpandTransformation.expand(equation, simplification);
                equation = simplification.transform(equation);
                equation = CollectNonScalarsTransformation.collectNonScalars(equation);
                if (!TensorUtils.containsSimpleTensors(equation, varsNames))
                    break;

            } while (count-- > 0);
View Full Code Here

        //all simplifications
        ArrayList<Transformation> simplifications = new ArrayList<>();
        simplifications.add(EliminateMetricsTransformation.ELIMINATE_METRICS);
        simplifications.addAll(unitarySimplifications);
        this.unitarySimplifications = new TransformationCollection(simplifications);
    }
View Full Code Here

        //all simplifications
        ArrayList<Transformation> simplifications = new ArrayList<>();
        simplifications.add(EliminateMetricsTransformation.ELIMINATE_METRICS);
        simplifications.addAll(unitarySimplifications);
        this.unitarySimplifications = new TransformationCollection(simplifications);
    }
View Full Code Here

                        for (int si = solution.length - 1; si >= 0; --si)
                            solution[si] = (Expression) coef.transform(solution[si]);
                    }
                if (!keepFreeParameters)
                    for (int si = solution.length - 1; si >= 0; --si)
                        solution[si] = (Expression) new TransformationCollection(zeroSubs).transform(solution[si]);


                //substituting the renamed tensors combinations
                for (Expression sub : scalarSubs)
                    for (int si = solution.length - 1; si >= 0; --si)
View Full Code Here

        //all simplifications
        ArrayList<Transformation> simplifications = new ArrayList<>();
        simplifications.add(EliminateMetricsTransformation.ELIMINATE_METRICS);
        simplifications.addAll(unitarySimplifications);
        this.unitarySimplifications = new TransformationCollection(simplifications);
    }
View Full Code Here

        //all simplifications
        ArrayList<Transformation> simplifications = new ArrayList<>();
        simplifications.add(EliminateMetricsTransformation.ELIMINATE_METRICS);
        simplifications.addAll(unitarySimplifications);
        this.unitarySimplifications = new TransformationCollection(simplifications);
    }
View Full Code Here

            {
                zeroSubs.add(Tensors.expression(coef.get(0), Complex.ZERO));
            } else
                inverse = coef.transform(inverse);
        if (!keepFreeParameters)
            inverse = new TransformationCollection(zeroSubs).transform(inverse);


        //substituting the renamed tensors combinations
        for (Expression sub : scalarSubs)
            inverse = sub.transpose().transform(inverse);
View Full Code Here

TOP

Related Classes of cc.redberry.core.transformations.TransformationCollection

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.