Examples of Transformation


Examples of cc.plural.math.Transformation

            Shader shader = getDefaultShader();
            Texture texture = gameObject.geometry.texture;
            Mesh mesh = gameObject.geometry.mesh;

            Transformation transformation = gameObject.getWorld();
            transformation.load(modelMatrix);

            texture.enable();
            {
                shader.enable();
                {
View Full Code Here

Examples of cc.redberry.core.transformations.Transformation

                return t;

            return t instanceof Sum ? new Sum(newData, t.getIndices()) : new Expression(t.getIndices(), newData[0], newData[1]);
        }

        return __unsafe_mapping_apply__(t, new Transformation() {
            @Override
            public Tensor transform(Tensor t) {
                return optimizeDummies(t);
            }
        });
View Full Code Here

Examples of cc.redberry.core.transformations.Transformation

        }

        // all types except sums and products are already processed at this point

        if (contractIndices) {
            return Transformation.Util.applyToEachChild(tensor, new Transformation() {
                @Override
                public Tensor transform(Tensor tt) {
                    return applyIndexMapping(tt, indexMapper);
                }
            });
View Full Code Here

Examples of cc.redberry.core.transformations.Transformation

        }


        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

Examples of cc.redberry.core.transformations.Transformation

                indicator);

        StringBuilder sb;
        Tensor temp;
        String covariantIndicesString;
        Transformation n2 = new SqrSubs(Tensors.parseSimple("n_l")), n2Transformer = new Transformer(TraverseState.Leaving, new Transformation[]{n2});
        Transformation[] transformations = ArraysUtils.addAll(new Transformation[]{EliminateMetricsTransformation.ELIMINATE_METRICS, n2Transformer}, riemannBackground);
        for (i = 0; i < actualHatQuantities; ++i) {
            hatQuantities[i] = new Expression[operatorOrder + 1 - i];
            covariantIndicesString = IndicesUtils.toString(Arrays.copyOfRange(covariantIndices, 0, covariantIndices.length - i), OutputFormat.Redberry);
            for (j = 0; j < operatorOrder + 1 - i; ++j) {
View Full Code Here

Examples of cc.redberry.core.transformations.Transformation

                Tensors.parseExpression("R_{l}^{l}= R")
        };


        Expression kronecker = (Expression) Tensors.parse("d_{l}^{l}=4");
        Transformation n2 = new SqrSubs(Tensors.parseSimple("n_l")), n2Transformer = new Transformer(TraverseState.Leaving, new Transformation[]{n2});
        Transformation[] common = new Transformation[]{EliminateMetricsTransformation.ELIMINATE_METRICS, n2Transformer, kronecker};
        Transformation[] all = ArraysUtils.addAll(common, riemansSubstitutions);
        Tensor temp;

        //Calculating Delta- tensors
View Full Code Here

Examples of cc.redberry.core.transformations.Transformation

        }


        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

Examples of cc.redberry.core.transformations.Transformation

                return t;

            return t instanceof Sum ? new Sum(newData, t.getIndices()) : new Expression(t.getIndices(), newData[0], newData[1]);
        }

        return __unsafe_mapping_apply__(t, new Transformation() {
            @Override
            public Tensor transform(Tensor t) {
                return optimizeDummies(t);
            }
        });
View Full Code Here

Examples of cc.redberry.core.transformations.Transformation

        }

        // all types except sums and products are already processed at this point

        if (contractIndices) {
            return Transformation.Util.applyToEachChild(tensor, new Transformation() {
                @Override
                public Tensor transform(Tensor tt) {
                    return applyIndexMapping(tt, indexMapper);
                }
            });
View Full Code Here

Examples of cc.redberry.core.transformations.Transformation

                indicator);

        StringBuilder sb;
        Tensor temp;
        String covariantIndicesString;
        Transformation n2 = new SqrSubs(Tensors.parseSimple("n_l")), n2Transformer = new Transformer(TraverseState.Leaving, new Transformation[]{n2});
        Transformation[] transformations = ArraysUtils.addAll(new Transformation[]{EliminateMetricsTransformation.ELIMINATE_METRICS, n2Transformer}, riemannBackground);
        for (i = 0; i < actualHatQuantities; ++i) {
            hatQuantities[i] = new Expression[operatorOrder + 1 - i];
            covariantIndicesString = IndicesUtils.toString(Arrays.copyOfRange(covariantIndices, 0, covariantIndices.length - i), OutputFormat.Redberry);
            for (j = 0; j < operatorOrder + 1 - i; ++j) {
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.