RcppAlgos

From MaRDI portal
Software:1352411



swMATH42442CRANRcppAlgosMaRDI QIDQ1352411

High Performance Tools for Combinatorics and Computational Mathematics

Joseph Wood

Last update: 10 December 2023

Software version identifier: 2.7.2, 0.1.0, 0.1.1, 0.1.2, 0.2.0, 0.2.1, 0.2.2, 0.2.4, 0.2.5, 1.0.0, 1.0.1, 2.0.1, 2.0.2, 2.0.3, 2.1.0, 2.2.0, 2.3.0, 2.3.1, 2.3.2, 2.3.3, 2.3.4, 2.3.5, 2.3.6, 2.4.1, 2.4.3, 2.5.0, 2.5.3, 2.6.0, 2.7.1, 2.8.0, 2.8.1, 2.8.2, 2.8.3

Source code repository: https://github.com/cran/RcppAlgos

Copyright license: GNU General Public License, version 3.0, GNU General Public License, version 2.0

Provides optimized functions and flexible combinatorial iterators implemented in C++ for solving problems in combinatorics and computational mathematics. Utilizes the RMatrix class from 'RcppParallel' for thread safety. There are combination/permutation functions with constraint parameters that allow for generation of all results of a vector meeting specific criteria (e.g. generating integer partitions/compositions or finding all combinations such that the sum is between two bounds). Capable of generating specific combinations/permutations (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.