guix-commits
[Top][All Lists]
Advanced

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

05/25: gnu: Add julia-genericschur.


From: guix-commits
Subject: 05/25: gnu: Add julia-genericschur.
Date: Tue, 8 Jun 2021 10:58:43 -0400 (EDT)

efraim pushed a commit to branch master
in repository guix.

commit ba637c5cb200f3c81f7685e08c5cc711d5b6eef3
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Tue Jun 8 15:39:36 2021 +0300

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

diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index c9fe8e1..0471a8d 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -928,6 +928,43 @@ differentiation (AD).")
      "FuzzyCompletions provides fuzzy completions for a Julia runtime 
session.")
     (license license:expat)))
 
+(define-public julia-genericschur
+  (package
+    (name "julia-genericschur")
+    (version "0.5.0")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/RalphAS/GenericSchur.jl";)
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "0kklc2niylvynhq0v49kdmy58m9jmr5jxjf287k1wr9r81fya3sz"))))
+    (build-system julia-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (add-after 'unpack 'adjust-test-suite
+           (lambda _
+             (substitute* "test/complex.jl"
+               ;; expected Array{Int32,1}, got a value of type Array{Int64,1}
+               (("A = _example") "#A = _example")
+               (("schurtest\\(A,20\\)") ""))
+             (substitute* "test/runtests.jl"
+               ;; Test errors relating to liblapack.so
+               ((".*complex\\.jl.*") "")
+               ((".*real\\.jl.*") "")
+               ;; GenericSVD is deprecated upstream
+               ((".*gordschur\\.jl.*") "")))))))
+    (home-page "https://github.com/RalphAS/GenericSchur.jl";)
+    (synopsis "Schur decomposition of matrices with generic element types")
+    (description "The Schur decomposition is the workhorse for eigensystem
+analysis of dense matrices.  The diagonal eigen-decomposition of normal
+(especially Hermitian) matrices is an important special case, but for 
non-normal
+matrices the Schur form is often more useful.")
+    (license license:expat)))
+
 (define-public julia-graphics
   (package
     (name "julia-graphics")



reply via email to

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