scs 3.2.7.post2__cp313-cp313-macosx_10_13_x86_64.whl → 3.2.8__cp313-cp313-macosx_10_13_x86_64.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
scs/__init__.py CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env python
2
2
  from warnings import warn
3
3
  from scipy import sparse
4
- import _scs_direct
4
+ from scs import _scs_direct
5
5
 
6
6
  __version__ = _scs_direct.version()
7
7
  __sizeof_int__ = _scs_direct.sizeof_int()
@@ -26,13 +26,13 @@ SOLVED_INACCURATE = 2 # SCS best guess solved
26
26
 
27
27
  # Choose which SCS to import based on settings.
28
28
  def _select_scs_module(stgs):
29
+
29
30
  if stgs.pop("gpu", False): # False by default
30
31
  if not stgs.pop("use_indirect", _USE_INDIRECT_DEFAULT):
31
32
  raise NotImplementedError(
32
- "GPU direct solver not yet available, pass `use_indirect=True`."
33
- )
34
- import _scs_gpu
35
-
33
+ "For the GPU direct solver, pass `use_indirect=False cudss=True`.")
34
+ from scs import _scs_gpu
35
+
36
36
  return _scs_gpu
37
37
 
38
38
  if stgs.pop("mkl", False): # False by default
@@ -40,12 +40,21 @@ def _select_scs_module(stgs):
40
40
  raise NotImplementedError(
41
41
  "MKL indirect solver not yet available, pass `use_indirect=False`."
42
42
  )
43
- import _scs_mkl
43
+ from scs import _scs_mkl
44
44
 
45
45
  return _scs_mkl
46
46
 
47
+ if stgs.pop("cudss", False): # False by default
48
+ if stgs.pop("use_indirect", False):
49
+ raise NotImplementedError(
50
+ "cuDSS is a direct solver, pass `use_indirect=False`."
51
+ )
52
+ from scs import _scs_cudss
53
+
54
+ return _scs_cudss
55
+
47
56
  if stgs.pop("use_indirect", _USE_INDIRECT_DEFAULT):
48
- import _scs_indirect
57
+ from scs import _scs_indirect
49
58
 
50
59
  return _scs_indirect
51
60
 
@@ -79,7 +88,7 @@ class SCS(object):
79
88
 
80
89
  if not sparse.issparse(A):
81
90
  raise TypeError("A is required to be a sparse matrix")
82
- if not sparse.isspmatrix_csc(A):
91
+ if not A.format == "csc":
83
92
  warn(
84
93
  "Converting A to a CSC (compressed sparse column) matrix;"
85
94
  " may take a while."
@@ -109,7 +118,7 @@ class SCS(object):
109
118
  raise TypeError("P is required to be a sparse matrix")
110
119
  if P.shape != (n, n):
111
120
  raise ValueError("P shape not compatible with A,b,c")
112
- if not sparse.isspmatrix_csc(P):
121
+ if not P.format == "csc":
113
122
  warn(
114
123
  "Converting P to a CSC (compressed sparse column) "
115
124
  "matrix; may take a while."
Binary file
Binary file
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: scs
3
- Version: 3.2.7.post2
3
+ Version: 3.2.8
4
4
  Summary: Splitting conic solver
5
5
  Author-Email: Brendan O'Donoghue <bodonoghue85@gmail.com>
6
6
  License: MIT License
@@ -25,7 +25,20 @@ License: MIT License
25
25
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
26
  SOFTWARE.
27
27
 
28
- Requires-Python: >=3.7
28
+ Classifier: License :: OSI Approved :: MIT License
29
+ Classifier: Programming Language :: C
30
+ Classifier: Programming Language :: Python
31
+ Classifier: Programming Language :: Python :: 3
32
+ Classifier: Programming Language :: Python :: 3.11
33
+ Classifier: Programming Language :: Python :: 3.12
34
+ Classifier: Programming Language :: Python :: 3.13
35
+ Classifier: Programming Language :: Python :: 3 :: Only
36
+ Classifier: Programming Language :: Python :: Implementation :: CPython
37
+ Classifier: Operating System :: Microsoft :: Windows
38
+ Classifier: Operating System :: POSIX
39
+ Classifier: Operating System :: Unix
40
+ Classifier: Operating System :: MacOS
41
+ Requires-Python: >=3.9
29
42
  Requires-Dist: numpy
30
43
  Requires-Dist: scipy
31
44
  Description-Content-Type: text/markdown
@@ -35,8 +48,7 @@ scs-python
35
48
 
36
49
  [![Build Status](https://github.com/bodono/scs-python/actions/workflows/build.yml/badge.svg)](https://github.com/bodono/scs-python/actions/workflows/build.yml)
37
50
  [![Documentation](https://img.shields.io/badge/docs-online-brightgreen?logo=read-the-docs&style=flat)](https://www.cvxgrp.org/scs/)
38
- [![PyPI package](https://img.shields.io/pypi/dm/scs?label=PyPI%20downloads)](https://pypi.org/project/scs/)
39
-
51
+ [![PyPI Downloads/Month](https://static.pepy.tech/personalized-badge/scs?period=month&units=abbreviation&left_color=grey&right_color=brightgreen&left_text=downloads/month)](https://pepy.tech/project/scs)
40
52
 
41
53
  Python interface for [SCS](https://github.com/cvxgrp/scs) 3.0.0 and higher.
42
54
  The full documentation is available [here](https://www.cvxgrp.org/scs/).
@@ -0,0 +1,7 @@
1
+ scs/_scs_indirect.cpython-313-darwin.so,sha256=oHs2nQUUGqRSln47M3XOCZhZikOdE1pd49AgbHAKc8Q,123312
2
+ scs/__init__.py,sha256=96fIOXkd0xJ5mU4-ild1Km5__fJb1n41NxvRRQdBBpE,6440
3
+ scs/_scs_direct.cpython-313-darwin.so,sha256=qwGgEOewmZxsfWGCUIok7c9BDgP9Mh3lAYNRW4RwVYo,140888
4
+ scs-3.2.8.dist-info/RECORD,,
5
+ scs-3.2.8.dist-info/LICENSE,sha256=lxIl5g3kUJCLfZjb72Z7K6XviabPAckIClya6BP-0Bg,1075
6
+ scs-3.2.8.dist-info/WHEEL,sha256=JvZNeqbemu-j4Hd1TJldmOb_prLeDmQzajinOYWsqFg,124
7
+ scs-3.2.8.dist-info/METADATA,sha256=NXOnuqeyO5Kl7oCCTUjivQngCggQqXZN25VJyCSVxGU,2806
@@ -0,0 +1,6 @@
1
+ Wheel-Version: 1.0
2
+ Generator: meson
3
+ Root-Is-Purelib: false
4
+ Tag: cp313-cp313-macosx_10_13_x86_64
5
+ Generator: delocate 0.13.0
6
+
Binary file
Binary file
@@ -1,7 +0,0 @@
1
- _scs_indirect.cpython-313-darwin.so,sha256=xOYtvs6XisGBxwu50Eu2Bwmr8RN246yenHnkR-YRRtM,123168
2
- _scs_direct.cpython-313-darwin.so,sha256=ksrTF-Qq1hlMX8YI-xEju4tYIejxBJiwFvsxwtz20Z0,140752
3
- scs/__init__.py,sha256=UVvImr-amS2iP4PjeNZp2jar0y3Xu8IjthfEJTRkZic,6136
4
- scs-3.2.7.post2.dist-info/RECORD,,
5
- scs-3.2.7.post2.dist-info/LICENSE,sha256=lxIl5g3kUJCLfZjb72Z7K6XviabPAckIClya6BP-0Bg,1075
6
- scs-3.2.7.post2.dist-info/WHEEL,sha256=fWuGjPgTEXCJxQKw4uPBVSDGWR9iVmYJDvwyCZWZ2Lw,95
7
- scs-3.2.7.post2.dist-info/METADATA,sha256=zV_3V9Og1Jm7FhsW8vuaqKLSXzYeIGIDFmX07Wqotd8,2090
@@ -1,4 +0,0 @@
1
- Wheel-Version: 1.0
2
- Generator: meson
3
- Root-Is-Purelib: false
4
- Tag: cp313-cp313-macosx_10_13_x86_64