Subject: [bug#68951] [PATCH 1/2] gnu: Add r-mvnfast.

From: Mădălin Ionel Patrașcu<[email-masked]>
Date: Tue, 6 Feb 2024 16:48:49 +0100

* gnu/packages/cran.scm (r-mvnfast): New variable.

Change-Id: I17b1d1da941248fde466aa90304481cae9ca60fe
---
 gnu/packages/cran.scm | 26 +++++++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 842946e766..ef4f235e65 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -11,7 +11,7 @@
 ;;; Copyright © 2018 Sandeep Subramanian <[email-masked]>
 ;;; Copyright © 2018 Charlie Ritter <[email-masked]>
 ;;; Copyright © 2018 Konrad Hinsen <[email-masked]>
-;;; Copyright © 2018, 2020-2023 Mădălin Ionel Patrașcu <[email-masked]>
+;;; Copyright © 2018, 2020-2024 Mădălin Ionel Patrașcu <[email-masked]>
 ;;; Copyright © 2018 Laura Lazzati <[email-masked]>
 ;;; Copyright © 2018 Leo Famulari <[email-masked]>
 ;;; Copyright © 2018 Marius Bakke <[email-masked]>
@@ -17911,6 +17911,30 @@ (define-public r-mvabund
 analysing multivariate abundance data in community ecology.")
     (license license:lgpl2.1+)))
 
+(define-public r-mvnfast
+  (package
+    (name "r-mvnfast")
+    (version "0.2.8")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "mvnfast" version))
+       (sha256
+        (base32 "1869xqq2wd7yw23q4ma5qawcnbdp7myafk6rdxazqymqak7f0wc8"))))
+    (properties `((upstream-name . "mvnfast")))
+    (build-system r-build-system)
+    (propagated-inputs (list r-bh r-rcpp r-rcpparmadillo))
+    (native-inputs (list r-knitr))
+    (home-page "https://github.com/mfasiolo/mvnfast/")
+    (synopsis "Fast multivariate normal and Student's t methods")
+    (description
+     "This package provides computationally efficient tools related to the
+multivariate normal and Student's t distributions.  The main functionalities
+are: simulating multivariate random vectors, evaluating multivariate normal or
+Student's t densities and Mahalanobis distances.  These tools are developed
+using C++ code and of the OpenMP API.")
+    (license license:gpl2+)))
+
 (define-public r-afex
   (package
     (name "r-afex")

base-commit: a4464bd0975c811f18af98f69032b29bddda5b81
-- 
2.41.0