Subject: [bug#63621] [PATCH 1/6] gnu: Add python-linear-operator.

From: Vinicius Monego <[email-masked]>
Date: Sun, 21 May 2023 03:02:05 +0000

* gnu/packages/machine-learning.scm (python-linear-operator): New variable.
---
 gnu/packages/machine-learning.scm | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/gnu/packages/machine-learning.scm b/gnu/packages/machine-learning.scm
index 694b050e86..de06b4988a 100644
--- a/gnu/packages/machine-learning.scm
+++ b/gnu/packages/machine-learning.scm
@@ -4080,6 +4080,25 @@ (define-public python-pyro-ppl
 inference.")
     (license license:asl2.0)))
 
+(define-public python-linear-operator
+  (package
+    (name "python-linear-operator")
+    (version "0.4.0")
+    (source (origin
+              (method url-fetch)
+              (uri (pypi-uri "linear_operator" version))
+              (sha256
+               (base32
+                "1ipm154n8cxnl35i8wrx650a60yxyhjpdpdl1mf7ijaqybwcjmvw"))))
+    (build-system pyproject-build-system)
+    (propagated-inputs (list python-pytorch python-scipy))
+    (native-inputs (list python-flake8 python-flake8-print python-twine))
+    (home-page "https://github.com/cornellius-gp/linear_operator/")
+    (synopsis "Linear operator implementation")
+    (description "LinearOperator is a PyTorch package for abstracting away the
+linear algebra routines needed for structured matrices (or operators).")
+    (license license:expat)))
+
 (define-public vosk-api
   (let* ((openfst openfst-for-vosk)
          (kaldi kaldi-for-vosk))
-- 
2.34.1