summary refs log tree commit diff
path: root/gnu/packages/julia-xyz.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-06-14 12:23:22 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-06-14 14:45:21 +0300
commited6c0f852103d945ca84f6257388a125f8f3ecb3 (patch)
treee6b676bbc920288844f845942593a33da7e4dd32 /gnu/packages/julia-xyz.scm
parente9a0f6a4a5d5a3e55bf8dd6a4377dc4a77367d4a (diff)
downloadguix-ed6c0f852103d945ca84f6257388a125f8f3ecb3.tar.gz
gnu: Add julia-positivefactorizations.
* gnu/packages/julia-xyz.scm (julia-positivefactorizations): New variable.
Diffstat (limited to 'gnu/packages/julia-xyz.scm')
-rw-r--r--gnu/packages/julia-xyz.scm27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnu/packages/julia-xyz.scm b/gnu/packages/julia-xyz.scm
index 7f3921abe6..781ad4a7c3 100644
--- a/gnu/packages/julia-xyz.scm
+++ b/gnu/packages/julia-xyz.scm
@@ -2391,6 +2391,33 @@ plotting components.")
 purposes of compression when there are few unique elements.")
     (license license:expat)))
 
+(define-public julia-positivefactorizations
+  (package
+    (name "julia-positivefactorizations")
+    (version "0.2.4")
+    (source
+      (origin
+        (method git-fetch)
+        (uri (git-reference
+               (url "https://github.com/timholy/PositiveFactorizations.jl")
+               (commit (string-append "v" version))))
+        (file-name (git-file-name name version))
+        (sha256
+         (base32 "1wxy6ak7f3hvibcgc8q88cgkf9zvi649mmjy1zlkx1qk80hgvz23"))))
+    (build-system julia-build-system)
+    (native-inputs
+     `(("julia-forwarddiff" ,julia-forwarddiff)
+       ("julia-reversediff" ,julia-reversediff)))
+    (home-page "https://github.com/timholy/PositiveFactorizations.jl")
+    (synopsis "Positive-definite \"approximations\" to matrices")
+    (description "@code{PositiveFactorizations} is a package for computing a
+positive definite matrix decomposition (factorization) from an arbitrary
+symmetric input.  The motivating application is optimization (Newton or
+quasi-Newton methods), in which the canonical search direction -H/g (H being the
+Hessian and g the gradient) may not be a descent direction if H is not positive
+definite.")
+    (license license:expat)))
+
 (define-public julia-prettytables
   (package
     (name "julia-prettytables")