Examples of ReduceSemantics


Examples of com.oracle.truffle.r.nodes.unary.UnaryArithmeticReduceNode.ReduceSemantics

        super(prev);
    }

    @Override
    protected RNode createDelegate() {
        ReduceSemantics semantics = new ReduceSemantics(RRuntime.INT_MIN_VALUE, Double.NEGATIVE_INFINITY, false, RError.Message.NO_NONMISSING_MAX, false, true);
        RNode[] args = getArguments();
        Combine combine = CombineFactory.create(new RNode[]{args[0]}, getBuiltin(), null);
        return UnaryArithmeticReduceNodeFactory.create(semantics, BinaryArithmetic.MAX, combine, args.length > 1 ? args[1] : ConstantNode.create(RRuntime.LOGICAL_FALSE));
    }
View Full Code Here

Examples of com.oracle.truffle.r.nodes.unary.UnaryArithmeticReduceNode.ReduceSemantics

        super(prev);
    }

    @Override
    protected RNode createDelegate() {
        ReduceSemantics semantics = new ReduceSemantics(0, 0.0, true, null, true, false);
        RNode[] args = getArguments();
        Combine combine = CombineFactory.create(new RNode[]{args[0]}, getBuiltin(), null);
        return UnaryArithmeticReduceNodeFactory.create(semantics, BinaryArithmetic.ADD, combine, args.length > 1 ? args[1] : ConstantNode.create(RRuntime.LOGICAL_FALSE));
    }
View Full Code Here

Examples of com.oracle.truffle.r.nodes.unary.UnaryArithmeticReduceNode.ReduceSemantics

        super(prev);
    }

    @Override
    protected RNode createDelegate() {
        ReduceSemantics semantics = new ReduceSemantics(RRuntime.INT_MAX_VALUE, Double.POSITIVE_INFINITY, false, RError.Message.NO_NONMISSING_MIN, false, true);
        RNode[] args = getArguments();
        Combine combine = CombineFactory.create(new RNode[]{args[0]}, getBuiltin(), null);
        return UnaryArithmeticReduceNodeFactory.create(semantics, BinaryArithmetic.MIN, combine, args.length > 1 ? args[1] : ConstantNode.create(RRuntime.LOGICAL_FALSE));
    }
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.