शुरू करेंमुफ़्त में शुरू करें

What happens when you compile this C++ file

Read the following C++ code chunk.

#include <Rcpp.h>
using namespace Rcpp ; 

double twice(double x){
    return x + x
}

This has been saved in a file given by the variable twice_file. What will happen if you compile this file with sourceCpp()?

यह अभ्यास पाठ्यक्रम का हिस्सा है

Optimizing R Code with Rcpp

पाठ्यक्रम देखें

इंटरैक्टिव व्यावहारिक अभ्यास

हमारे इंटरैक्टिव अभ्यासों में से किसी एक के साथ सिद्धांत को व्यवहार में बदलें

अभ्यास शुरू करें