The RcppAlgos package attacks age-old problems in combinatorics and computational mathematics.
The main goal is to encourage fresh and creative approaches to foundational problems. The question that most appropriately summarizes RcppAlgos
is: "Can we do better?".
Provide highly optimized functions that facilitates a broader spectrum of researchable cases. E.g
Investigating the structure of large numbers over wide ranges:
primeFactorizeSieve(10^13 - 10^7, 10^13 + 10^7)
primeSieve(2^53 - 10^10, 2^53 - 1, nThreads = 8)
Easily explore combinations/permutations that would otherwise be inaccessible due to time of execution/memory constraints:
comboGeneral(primeSieve(1000), m = 5, repetition = TRUE, constraintFun = "prod", comparisonFun = "<", limitConstraints = 500000, upper = 10^5)
parallel::mclapply(seq(...), function(x) { temp = permuteGeneral(15, 10, lower = x, upper = y) ## analyze permutations ## output results }, mc.cores = detectCores() - 1))
permuteSample(rnorm(100), 10, freqs = rep(1:4, 25), n = 15, seed = 123)
Speed!!!.... You will find that the functions in RcppAlgos
are some of the fastest of their type available in R
.