RcppAlgos
2.10.1High Performance Tools for Combinatorics and Computational Mathematics
Overview
Provides optimized functions and flexible iterators implemented in C++ for solving problems in combinatorics and computational mathematics. Handles various combinatorial objects including combinations, permutations, integer partitions and compositions, Cartesian products, unordered Cartesian products, and partition of groups. Utilizes the RMatrix class from 'RcppParallel' for thread safety. The combination and permutation functions contain constraint parameters that allow for generation of all results of a vector meeting specific criteria (e.g. finding all combinations such that the sum is between two bounds). Capable of ranking/unranking combinatorial objects efficiently (e.g. retrieve only the nth lexicographical result) which sets up nicely for parallelization as well as random sampling. Gmp support permits exploration where the total number of results is large (e.g. comboSample(10000, 500, n = 4)). Additionally, there are several high performance number theoretic functions that are useful for problems common in computational mathematics. Some of these functions make use of the fast integer division library 'libdivide'. The primeSieve function is based on the segmented sieve of Eratosthenes implementation by Kim Walisch. It is also efficient for large numbers by using the cache friendly improvements originally developed by Tomás Oliveira. Finally, there is a prime counting function that implements Legendre's formula based on the work of Kim Walisch.
Install
Health
- OK2026-05-1013 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- WARNING2026-05-0912 OK · 0 NOTE · 1 WARNING · 0 ERROR · 0 FAILURE
- OK2026-04-2512 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
- NOTE2026-03-1011 OK · 3 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Documentation
- Examples that run
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- References docs
- 57%
Downloads
Repository
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
Repository practices
3 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/jwood000/rcppalgos on 2026-07-19.
Dependencies
Code & Tests
- Cyclomatic complexity
- 1.0 median / 19 max
- Test cases
- 88 / 6.56 per code line
- System requirements
- 1 external
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
962 39 exported
Complexity
1.9 avg / 19 max
Call network
962 nodes / 1158 edges
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
39 releases. Pick two to compare their code metrics. R releases are shown for context.
- 2.10.1Latest
- RR 4.6.0 released · 2026-04-24
- 2.10.02026-03-08 · diff ↗
- 2.9.52026-01-29 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 2.9.32025-02-03 · diff ↗
- 2.9.12025-01-27 · diff ↗
- 2.8.52024-10-11 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 2.8.32023-12-10 · diff ↗
- 2.8.22023-10-03 · diff ↗
- 2.8.12023-08-14 · diff ↗
- 2.8.02023-07-11 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 2.7.22023-02-11 · diff ↗
- 2.7.12023-02-06 · diff ↗
Show 33 earlier events
- 2.6.02022-08-15 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 2.5.32022-03-31 · diff ↗
- 2.5.02022-03-16 · diff ↗
- 2.4.32021-05-30 · diff ↗
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 2.4.12020-03-24 · diff ↗
- 2.3.62020-01-29 · diff ↗
- 2.3.52020-01-26 · diff ↗
- 2.3.42019-07-03 · diff ↗
- 2.3.32019-06-30 · diff ↗
- RR 3.6.0 released · 2019-04-26
- 2.3.22019-04-14 · diff ↗
- 2.3.12019-03-21 · diff ↗
- 2.3.02019-03-17 · diff ↗
- 2.2.02018-09-15 · diff ↗
- 2.1.02018-09-11 · diff ↗
- 2.0.32018-06-30 · diff ↗
- 2.0.22018-06-14 · diff ↗
- 2.0.12018-06-10 · diff ↗
- RR 3.5.0 released · 2018-04-23
- 1.0.12018-03-10 · diff ↗
- 1.0.02018-03-07 · diff ↗
- 0.2.52018-01-04 · diff ↗
- 0.2.42017-12-18 · diff ↗
- 0.2.22017-12-15 · diff ↗
- 0.2.12017-11-30 · diff ↗
- 0.2.02017-11-28 · diff ↗
- 0.1.22017-11-03 · diff ↗
- 0.1.12017-11-03 · diff ↗
- 0.1.02017-10-26
- RR 3.4.0 released · 2017-04-21
Package metadata
- First published
- 2017-10-26
- Total releases
- 39 / 9 yrs
- License
- GPL (>= 2) OSI
- Download size
- 1.5 MB
- Installed size
- not tracked yet
- With dependencies
- not tracked yet