Package r.data.internal.ProfilingView

Examples of r.data.internal.ProfilingView.ViewProfile


                ViewProfile profile;

                @Override
                public Object calc(Object lexpr, Object rexpr) throws SpecializationException {
                    if (profile == null) {
                        profile = new ViewProfile();
                        RArray res = genericCalc(lexpr, rexpr, arit, returnsDouble, LAZY_VECTOR, ast);
                        return ProfilingView.ViewProfile.profile(res, profile);
                    } else {
                        throw new SpecializationException(chooseVectorArithmetic(profile));
                    }
View Full Code Here


            final int size = value.size();
            if (size == 1) {
                return RDouble.RDoubleFactory.getScalar(op(ast, value.getDouble(0)), value.dimensions(), value.names(), value.attributesRef());
            } else if (size > 0) {
                if (profile == null) {
                    profile = new ViewProfile();
                    return ProfilingView.ViewProfile.profile(createView(ast, value, size), profile);
                } else {
                    if (profile.shouldBeLazy()) {
                        return replaceAndExecuteLazy(value);
                    } else {
View Full Code Here

TOP

Related Classes of r.data.internal.ProfilingView.ViewProfile

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.