summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin/packages/py-linear-operator/package.py
diff options
context:
space:
mode:
Diffstat (limited to 'var/spack/repos/builtin/packages/py-linear-operator/package.py')
-rw-r--r--var/spack/repos/builtin/packages/py-linear-operator/package.py22
1 files changed, 22 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-linear-operator/package.py b/var/spack/repos/builtin/packages/py-linear-operator/package.py
new file mode 100644
index 0000000000..8133edf514
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-linear-operator/package.py
@@ -0,0 +1,22 @@
+# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack.package import *
+
+
+class PyLinearOperator(PythonPackage):
+ """A linear operator implementation, primarily designed for finite-dimensional
+ positive definite operators (i.e. kernel matrices)."""
+
+ homepage = "https://github.com/cornellius-gp/linear_operator/"
+ pypi = "linear_operator/linear_operator-0.1.1.tar.gz"
+
+ version("0.1.1", sha256="81adc1aea9e98f3c4f07f5608eb77b689bc61793e9beebfea82155e9237bf1be")
+
+ depends_on("python@3.8:", type=("build", "run"))
+ depends_on("py-setuptools", type="build")
+ depends_on("py-setuptools-scm", type="build")
+ depends_on("py-torch@1.11:", type=("build", "run"))
+ depends_on("py-scipy", type=("build", "run"))