guix-commits
[Top][All Lists]
Advanced

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

18/26: gnu: Add julia-mappedarrays.


From: guix-commits
Subject: 18/26: gnu: Add julia-mappedarrays.
Date: Mon, 31 May 2021 05:56:23 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit ea03851b019b699d1f48d39cfd7e681d9fbd3991
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Mon May 31 12:22:58 2021 +0300

    gnu: Add julia-mappedarrays.
    
    * gnu/packages/julia-xyz.scm (julia-mappedarrays): New variable.
---
 gnu/packages/julia-xyz.scm | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index c802c2b..553dbfc 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -1158,6 +1158,36 @@ expressions.  This includes a template-matching system 
and code-walking tools
 that let you do deep transformations of code.")
     (license license:expat)))
 
+(define-public julia-mappedarrays
+  (package
+    (name "julia-mappedarrays")
+    (version "0.4.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/JuliaArrays/MappedArrays.jl";)
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "0l5adird8m1cmnsxwhzi5hcr7q9bm1rf7a6018zc7kcn2yxdshy3"))))
+    (build-system julia-build-system)
+    (propagated-inputs
+     `(("julia-fixedpointnumbers" ,julia-fixedpointnumbers)))
+    (native-inputs
+     `(("julia-colortypes" ,julia-colortypes)
+       ("julia-fixedpointnumbers" ,julia-fixedpointnumbers)
+       ("julia-offsetarrays" ,julia-offsetarrays)))
+    (home-page "https://github.com/JuliaArrays/MappedArrays.jl";)
+    (synopsis "Lazy in-place transformations of arrays")
+    (description "This package implements \"lazy\" in-place elementwise
+transformations of arrays for the Julia programming language.  Explicitly, it
+provides a \"view\" M of an array A so that @code{M[i] = f(A[i])} for a
+specified (but arbitrary) function f, without ever having to compute M
+explicitly (in the sense of allocating storage for M).  The name of the package
+comes from the fact that @code{M == map(f, A)}.")
+    (license license:expat)))
+
 (define-public julia-matrixfactorizations
   (package
     (name "julia-matrixfactorizations")



reply via email to

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