aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/algebra.scm
diff options
context:
space:
mode:
authorLiliana Marie Prikler <liliana.prikler@gmail.com>2023-10-09 21:21:29 +0200
committerLiliana Marie Prikler <liliana.prikler@gmail.com>2023-10-09 21:21:29 +0200
commit24fee2615ce7a18a7fcd6054b73375a890556cf3 (patch)
tree353f9e87b8ec736f32eed840c58dc7d5651c19cf /gnu/packages/algebra.scm
parent7d134b57b79188f8c878625d4e09f9bd6181e8c0 (diff)
parent7937c8827b8d23347a3159b4696335bd19fc17aa (diff)
downloadguix-24fee2615ce7a18a7fcd6054b73375a890556cf3.tar
guix-24fee2615ce7a18a7fcd6054b73375a890556cf3.tar.gz
Merge branch 'master' into gnome-team
Diffstat (limited to 'gnu/packages/algebra.scm')
-rw-r--r--gnu/packages/algebra.scm34
1 files changed, 34 insertions, 0 deletions
diff --git a/gnu/packages/algebra.scm b/gnu/packages/algebra.scm
index b1ab755144..c061184aee 100644
--- a/gnu/packages/algebra.scm
+++ b/gnu/packages/algebra.scm
@@ -1366,6 +1366,40 @@ objects.")
;; safe side, we drop them for now.
(license license:gpl2+)))
+(define-public spectra
+ (package
+ (name "spectra")
+ (version "1.0.1")
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/yixuan/spectra")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "1krgx7763g0phrp879rgq10dvfyxrdx9rzwxiyzn6qi3iqr6d8hx"))))
+ (build-system cmake-build-system)
+ (arguments
+ (list #:configure-flags #~(list "-DBUILD_TESTS=ON")
+ #:phases
+ #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ ;; This test failed.
+ (invoke "ctest" "--exclude-regex"
+ "GenEigsRealShift")))))))
+ (inputs (list eigen))
+ (home-page "https://spectralib.org/")
+ (synopsis "C++ library for large scale eigenvalue problems")
+ (description "Spectra stands for Sparse Eigenvalue Computation Toolkit as
+a Redesigned ARPACK. It is a C++ library for large scale eigenvalue problems,
+built on top of Eigen. It is implemented as a header-only C++ library and can
+be easily embedded in C++ projects that require calculating eigenvalues of
+large matrices.")
+ (license license:mpl2.0)))
+
(define-public gappa
(package
(name "gappa")