เริ่มต้นใช้งานเริ่มต้นใช้งานได้ฟรี

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

ดูคอร์ส

แบบฝึกหัดเชิงโต้ตอบแบบลงมือทำจริง

เปลี่ยนทฤษฎีให้เป็นการลงมือทำด้วยแบบฝึกหัดเชิงโต้ตอบหนึ่งในของเรา

เริ่มแบบฝึกหัด