summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2025-03-07 23:41:05 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2025-03-31 21:04:10 +0100
commit34411663a93ca3d89788c5b5a5704dffd13bdd15 (patch)
treecf64a440a891f0de5f99e70c29954c487797233d
parent45d2185c84b0898a1bde797a4bfe906321111e18 (diff)
gnu: Add python-algopy.
* gnu/packages/python-science.scm (python-algopy): New variable. Change-Id: I6630f4677e0bd33f321cce9e6d1f40a6bf36c625
-rw-r--r--gnu/packages/python-science.scm33
1 files changed, 33 insertions, 0 deletions
diff --git a/gnu/packages/python-science.scm b/gnu/packages/python-science.scm
index 72917d7e28..dda8e44954 100644
--- a/gnu/packages/python-science.scm
+++ b/gnu/packages/python-science.scm
@@ -174,6 +174,39 @@ scientific codes by steering the implementation towards usability and
maintainability.")
(license license:bsd-3)))
+(define-public python-algopy
+ (package
+ (name "python-algopy")
+ (version "0.6.0") ; the higher versions requir NumPy 2+ stack
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "algopy" version))
+ (sha256
+ (base32 "1vjrzzxa3gvyh2zvm1vwg0s6a7dv23rihgdvgyj1vqniyymp91nq"))))
+ (build-system pyproject-build-system)
+ (native-inputs
+ (list python-pytest
+ python-setuptools
+ python-wheel))
+ (propagated-inputs
+ (list python-numpy
+ python-scipy))
+ (home-page "https://pythonhosted.org/algopy")
+ (synopsis "Algorithmic Differentation in Python")
+ (description
+ "AlgoPy provides a functionality to differentiate functions implemented
+as computer programs by using Algorithmic Differentiation (AD) techniques in
+the forward and reverse mode.
+
+The forward mode propagates univariate Taylor polynomials of arbitrary order.
+Hence it is also possible to use AlgoPy to evaluate higher-order derivative
+tensors. The reverse mode is also known as backpropagation and can be found
+in similar form in tools like PyTorch. Speciality of AlgoPy is the
+possibility to differentiate functions that contain matrix functions as
++,-,*,/, dot, solve, qr, eigh, cholesky.")
+ (license license:bsd-3)))
+
(define-public python-cmocean
(package
(name "python-cmocean")