guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

11/215: gnu: Add r-dqrng.


From: guix-commits
Subject: 11/215: gnu: Add r-dqrng.
Date: Sun, 5 May 2019 18:15:29 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 3961b3b90023ec6a180dde4cb1570f50411299c1
Author: Ricardo Wurmus <address@hidden>
Date:   Sun May 5 23:23:28 2019 +0200

    gnu: Add r-dqrng.
    
    * gnu/packages/cran.scm (r-dqrng): 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 31507fc..6430a69 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -14232,3 +14232,35 @@ consensus and secondary clusterings.")
 in an OpenMP parallel environment.  In addition, there is a generator for one
 dimensional low-discrepancy sequence.")
     (license license:expat)))
+
+(define-public r-dqrng
+  (package
+    (name "r-dqrng")
+    (version "0.2.0")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "dqrng" version))
+       (sha256
+        (base32
+         "07fgs08w0afgz36lh90g5gi7rc93j2c0cqc9wvakch05f178wis4"))))
+    (build-system r-build-system)
+    (propagated-inputs
+     `(("r-bh" ,r-bh)
+       ("r-rcpp" ,r-rcpp)
+       ("r-sitmo" ,r-sitmo)))
+    (home-page "https://www.daqana.org/dqrng";)
+    (synopsis "Fast pseudo random number generators")
+    (description
+     "Several fast random number generators are provided as C++ header-only
+libraries: the PCG family as well as Xoroshiro128+ and Xoshiro256+.
+Additionally, fast functions for generating random numbers according to a
+uniform, normal and exponential distribution are included.  The latter two use
+the Ziggurat algorithm originally proposed by Marsaglia and Tsang.  These
+functions are exported to R and as a C++ interface and are enabled for use
+with the default 64 bit generator from the PCG family, Xoroshiro128+ and
+Xoshiro256+ as well as the 64 bit version of the 20 rounds Threefry
+engine (Salmon et al., 2011) as provided by the package @code{sitmo}.")
+    ;; This package includes code under CC0 and Apache 2.0 or Expat, but as a
+    ;; whole is distributed under the terms of the AGPL 3.
+    (license license:agpl3)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]