guix-commits
[Top][All Lists]
Advanced

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

02/05: gnu: Add r-float.


From: guix-commits
Subject: 02/05: gnu: Add r-float.
Date: Tue, 29 Jun 2021 06:29:52 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 3ad0ec5fa79a43c2050c3552e5c5a9eb4687625d
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jun 29 12:27:44 2021 +0200

    gnu: Add r-float.
    
    * gnu/packages/cran.scm (r-float): New variable.
---
 gnu/packages/cran.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index ed83498..a17f5d2 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -17837,6 +17837,33 @@ Python programming language whose design became a de 
facto standard in
 industry for machine learning tasks.")
     (license license:expat)))
 
+(define-public r-float
+  (package
+    (name "r-float")
+    (version "0.2-4")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "float" version))
+       (sha256
+        (base32
+         "1wf1dfybgbhvh9sa5z41xkh8liwp5n9gyydfq2mpg6bag0r457z1"))))
+    (properties `((upstream-name . "float")))
+    (build-system r-build-system)
+    (native-inputs
+     `(("gfortran" ,gfortran)))
+    (home-page "https://github.com/wrathematics/float";)
+    (synopsis "32-bit floats")
+    (description
+     "R comes with a suite of utilities for linear algebra with
+\"numeric\" (double precision) vectors/matrices.  However, sometimes single
+precision (or less!) is more than enough for a particular task.  This package
+extends R's linear algebra facilities to include 32-bit float (single
+precision) data.  Float vectors/matrices have half the precision of their
+\"numeric\"-type counterparts but are generally faster to numerically operate
+on, for a performance vs accuracy trade-off.")
+    (license license:bsd-2)))
+
 (define-public r-xmlparsedata
   (package
     (name "r-xmlparsedata")



reply via email to

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