scs 3.2.7__cp310-cp310-macosx_11_0_arm64.whl → 3.2.8__cp310-cp310-macosx_11_0_arm64.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 +18 -9
- _scs_direct.cpython-310-darwin.so → scs/_scs_direct.cpython-310-darwin.so +0 -0
- _scs_indirect.cpython-310-darwin.so → scs/_scs_indirect.cpython-310-darwin.so +0 -0
- scs-3.2.8.dist-info/METADATA +54 -0
- scs-3.2.8.dist-info/RECORD +7 -0
- scs-3.2.8.dist-info/WHEEL +6 -0
- scs-3.2.7.dist-info/METADATA +0 -41
- scs-3.2.7.dist-info/RECORD +0 -7
- scs-3.2.7.dist-info/WHEEL +0 -4
- {scs-3.2.7.dist-info → scs-3.2.8.dist-info}/LICENSE +0 -0
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
|
33
|
-
|
34
|
-
|
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
|
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
|
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
|
@@ -0,0 +1,54 @@
|
|
1
|
+
Metadata-Version: 2.1
|
2
|
+
Name: scs
|
3
|
+
Version: 3.2.8
|
4
|
+
Summary: Splitting conic solver
|
5
|
+
Author-Email: Brendan O'Donoghue <bodonoghue85@gmail.com>
|
6
|
+
License: MIT License
|
7
|
+
|
8
|
+
Copyright (c) 2017 Brendan O'Donoghue
|
9
|
+
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
12
|
+
in the Software without restriction, including without limitation the rights
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
15
|
+
furnished to do so, subject to the following conditions:
|
16
|
+
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
18
|
+
copies or substantial portions of the Software.
|
19
|
+
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
26
|
+
SOFTWARE.
|
27
|
+
|
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
|
42
|
+
Requires-Dist: numpy
|
43
|
+
Requires-Dist: scipy
|
44
|
+
Description-Content-Type: text/markdown
|
45
|
+
|
46
|
+
scs-python
|
47
|
+
===
|
48
|
+
|
49
|
+
[](https://github.com/bodono/scs-python/actions/workflows/build.yml)
|
50
|
+
[](https://www.cvxgrp.org/scs/)
|
51
|
+
[](https://pepy.tech/project/scs)
|
52
|
+
|
53
|
+
Python interface for [SCS](https://github.com/cvxgrp/scs) 3.0.0 and higher.
|
54
|
+
The full documentation is available [here](https://www.cvxgrp.org/scs/).
|
@@ -0,0 +1,7 @@
|
|
1
|
+
scs/__init__.py,sha256=96fIOXkd0xJ5mU4-ild1Km5__fJb1n41NxvRRQdBBpE,6440
|
2
|
+
scs/_scs_direct.cpython-310-darwin.so,sha256=3C_5jO-PdD3EB708Ci3MZ3KoFwfgfC82b0V-Q7h4T7E,142080
|
3
|
+
scs/_scs_indirect.cpython-310-darwin.so,sha256=EFeCqiZAXUOz5ZzSNRE94AVCUGbsCOSKnd9VoBzBons,124400
|
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=vC6Qqkqutbxsdb66QEvnuahoNMEYJXtiK5VKySsfqSM,122
|
7
|
+
scs-3.2.8.dist-info/METADATA,sha256=NXOnuqeyO5Kl7oCCTUjivQngCggQqXZN25VJyCSVxGU,2806
|
scs-3.2.7.dist-info/METADATA
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
Metadata-Version: 2.1
|
2
|
-
Name: scs
|
3
|
-
Version: 3.2.7
|
4
|
-
Summary: Splitting conic solver
|
5
|
-
Author-Email: Brendan O'Donoghue <bodonoghue85@gmail.com>
|
6
|
-
License: MIT License
|
7
|
-
|
8
|
-
Copyright (c) 2017 Brendan O'Donoghue
|
9
|
-
|
10
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
11
|
-
of this software and associated documentation files (the "Software"), to deal
|
12
|
-
in the Software without restriction, including without limitation the rights
|
13
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
14
|
-
copies of the Software, and to permit persons to whom the Software is
|
15
|
-
furnished to do so, subject to the following conditions:
|
16
|
-
|
17
|
-
The above copyright notice and this permission notice shall be included in all
|
18
|
-
copies or substantial portions of the Software.
|
19
|
-
|
20
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
21
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
22
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
23
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
24
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
25
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
26
|
-
SOFTWARE.
|
27
|
-
Requires-Python: >=3.7
|
28
|
-
Requires-Dist: numpy
|
29
|
-
Requires-Dist: scipy
|
30
|
-
Description-Content-Type: text/markdown
|
31
|
-
|
32
|
-
scs-python
|
33
|
-
===
|
34
|
-
|
35
|
-
[](https://github.com/bodono/scs-python/actions/workflows/build.yml)
|
36
|
-
[](https://www.cvxgrp.org/scs/)
|
37
|
-
[](https://pypi.org/project/scs/)
|
38
|
-
|
39
|
-
|
40
|
-
Python interface for [SCS](https://github.com/cvxgrp/scs) 3.0.0 and higher.
|
41
|
-
The full documentation is available [here](https://www.cvxgrp.org/scs/).
|
scs-3.2.7.dist-info/RECORD
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
_scs_direct.cpython-310-darwin.so,sha256=vBPWLZbwgBBQf44AIdwf6fRzPZWXBmZTB_i3Q_51Mtg,141936
|
2
|
-
_scs_indirect.cpython-310-darwin.so,sha256=eVA9LCRKXN5aipmsFNBJ3Lyrhen_-O55QykL67lvSz8,124256
|
3
|
-
scs/__init__.py,sha256=UVvImr-amS2iP4PjeNZp2jar0y3Xu8IjthfEJTRkZic,6136
|
4
|
-
scs-3.2.7.dist-info/RECORD,,
|
5
|
-
scs-3.2.7.dist-info/LICENSE,sha256=lxIl5g3kUJCLfZjb72Z7K6XviabPAckIClya6BP-0Bg,1075
|
6
|
-
scs-3.2.7.dist-info/WHEEL,sha256=PyQFRynAJoyZSY4x-mzpOdkkuaJ40di4hJqN3-yAcP4,93
|
7
|
-
scs-3.2.7.dist-info/METADATA,sha256=r4UxDdbEc422PQn5y1VRBATfnQPTfjhj5WBG9rQfxZE,2054
|
scs-3.2.7.dist-info/WHEEL
DELETED
File without changes
|