Package: RcppAlgos
Version: 2.10.2
Title: High Performance Tools for Combinatorics and Computational
        Mathematics
Description: 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.
URL: https://jwood000.github.io/RcppAlgos/,
        https://github.com/jwood000/RcppAlgos, https://gmplib.org/,
        https://github.com/kimwalisch/primesieve,
        https://libdivide.com,
        https://github.com/kimwalisch/primecount,
        https://ridiculousfish.com/,
        https://sweet.ua.pt/tos/software/prime_sieve.html
BugReports: https://github.com/jwood000/RcppAlgos/issues
LinkingTo: cpp11
Imports: gmp, methods
Suggests: testthat, partitions, microbenchmark, knitr, RcppBigIntAlgos,
        rmarkdown, prettydoc, covr, xml2
Config/Needs/website: pkgdown
License: GPL (>=2)
SystemRequirements: gmp (>= 4.2.3)
VignetteBuilder: knitr
NeedsCompilation: yes
Authors@R: c(
        person(
            given = "Joseph", family = "Wood",
            role = c("aut", "cre"),
            email = "jwood000@gmail.com"
        ),
        person(
            given = "Joseph J.",
            family = "Allaire",
            role = "ctb",
            comment = "Original author of RMatrix.h, copied from RcppParallel"
        )
    )
Encoding: UTF-8
RoxygenNote: 7.2.3
Config/pak/sysreqs: libgmp3-dev
Repository: https://jwood000.r-universe.dev
Date/Publication: 2026-10-06 13:35:08 UTC
RemoteUrl: https://github.com/jwood000/rcppalgos
RemoteRef: HEAD
RemoteSha: 896d760ba649eca0e1ad4678283b2d5834313ddb
Packaged: 2026-10-07 09:10:18 UTC; root
Author: Joseph Wood [aut, cre],
  Joseph J. Allaire [ctb] (Original author of RMatrix.h, copied from
    RcppParallel)
Maintainer: Joseph Wood <jwood000@gmail.com>
