Skip to content

SchlossLab/CppThreadingExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ThreadingExample

The goal of ThreadingExample is to demonstrate the use of threaded C++ code in an R package.

Installation

You can install the development version of ThreadingExample from GitHub with:

# install.packages("pak")
pak::pak("SchlossLab/CppThreadingExample")

Example

The basic example below will calculate the sum of 'data' using 4 processors.

library(ThreadingExample)
data <- c(1:100)
calculate_sum(data, 4)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published