Package com.oracle.truffle.r.runtime.data

Examples of com.oracle.truffle.r.runtime.data.RVector


    @SlowPath
    protected Object unClass(RAbstractVector arg) {
        controlVisibility();
        if (arg.isObject()) {
            objectProfile.enter();
            RVector resultVector = arg.materialize();
            if (resultVector.isShared()) {
                resultVector = resultVector.copy();
            }
            return RVector.setClassAttr(resultVector, null, null);
        }
        return arg;
    }
View Full Code Here


    @Specialization
    @SlowPath
    protected RAbstractVector updateLevels(RAbstractVector vector, @SuppressWarnings("unused") RNull levels) {
        controlVisibility();
        RVector v = vector.materialize();
        v.setLevels(null);
        return v;
    }
View Full Code Here

    @Specialization
    @SlowPath
    protected RAbstractVector updateLevels(RAbstractVector vector, Object levels) {
        controlVisibility();
        RVector v = vector.materialize();
        v.setLevels(levels);
        return v;

    }
View Full Code Here

    @Specialization(guards = "isLengthOne")
    @SlowPath
    protected RAbstractVector updateLength(RAbstractVector vector, RAbstractIntVector lengthVector) {
        controlVisibility();
        int length = lengthVector.getDataAt(0);
        RVector resultVector = vector.materialize();
        if (resultVector.isShared()) {
            sharedVectorSeen.enter();
            resultVector = resultVector.copy();
            resultVector.markNonTemporary();
        }
        resultVector.resizeWithNames(length);
        return resultVector;
    }
View Full Code Here

TOP

Related Classes of com.oracle.truffle.r.runtime.data.RVector

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.