From d5ba31c19accdf14bca23ebc0c3baf1c5b08fb5f Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Tue, 2 Aug 2022 15:12:10 +0200 Subject: [PATCH] gnu: Add r-rcppalgos. * gnu/packages/cran.scm (r-rcppalgos): New variable. --- gnu/packages/cran.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index e8f21b7567..094dd4e449 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -13484,6 +13484,38 @@ regressions). NOTE: Weighted partial correlation calculations pulled to address a bug.") (license license:gpl2+))) +(define-public r-rcppalgos + (package + (name "r-rcppalgos") + (version "2.5.3") + (source (origin + (method url-fetch) + (uri (cran-uri "RcppAlgos" version)) + (sha256 + (base32 + "1ndibdf3k02bpcgackzviczramzkay9idn071nix3dhs5miq1ai8")))) + (properties `((upstream-name . "RcppAlgos"))) + (build-system r-build-system) + (inputs (list gmp)) + (propagated-inputs (list r-cpp11 r-gmp)) + (native-inputs (list r-knitr)) + (home-page "https://github.com/jwood000/RcppAlgos") + (synopsis + "High performance tools for combinatorics and computational mathematics") + (description + "This package provides optimized functions and flexible combinatorial +iterators implemented in C++ for solving problems in combinatorics and +computational mathematics. It utilizes the @code{RMatrix} class from +@code{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. It is capable of generating specific +combinations/permutations which sets up nicely for parallelization as well as +random sampling. Gmp support permits exploration where the total number of +results is large. Additionally, there are several high performance number +theoretic functions that are useful for problems common in computational +mathematics.") + (license license:gpl2+))) + (define-public r-rcppannoy (package (name "r-rcppannoy")