triples 0.1.0__py3-none-any.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.
- triples/__init__.py +15 -0
- triples/benchmarks/__init__.py +0 -0
- triples/benchmarks/problems/__init__.py +18 -0
- triples/benchmarks/problems/books/__init__.py +7 -0
- triples/benchmarks/problems/books/vasile.py +3209 -0
- triples/benchmarks/problems/contests/__init__.py +8 -0
- triples/benchmarks/problems/contests/chn.py +995 -0
- triples/benchmarks/problems/contests/imo.py +405 -0
- triples/benchmarks/problems/problem_set.py +84 -0
- triples/benchmarks/run_benchmark.py +190 -0
- triples/core/__init__.py +45 -0
- triples/core/complexity.py +59 -0
- triples/core/dispatch.py +239 -0
- triples/core/linsos/__init__.py +3 -0
- triples/core/linsos/basis.py +728 -0
- triples/core/linsos/correction.py +175 -0
- triples/core/linsos/lift.py +145 -0
- triples/core/linsos/linsos.py +514 -0
- triples/core/linsos/models/linearsossolver_length_model.npz +0 -0
- triples/core/linsos/models/linearsossolver_prob_model.npz +0 -0
- triples/core/linsos/models/linearsossolver_time_model.npz +0 -0
- triples/core/linsos/solution.py +382 -0
- triples/core/linsos/tangents.py +394 -0
- triples/core/linsos/updegree.py +7 -0
- triples/core/node.py +391 -0
- triples/core/pivoting/__init__.py +4 -0
- triples/core/pivoting/pivoting.py +44 -0
- triples/core/pivoting/quadratic.py +481 -0
- triples/core/pivoting/tests/__init__.py +0 -0
- triples/core/pivoting/tests/test_pivoting.py +77 -0
- triples/core/preprocess/__init__.py +22 -0
- triples/core/preprocess/algebraic.py +140 -0
- triples/core/preprocess/elimination.py +308 -0
- triples/core/preprocess/features.py +83 -0
- triples/core/preprocess/modeling.py +336 -0
- triples/core/preprocess/polynomial.py +341 -0
- triples/core/preprocess/reparam.py +153 -0
- triples/core/preprocess/signs.py +660 -0
- triples/core/preprocess/tests/__init__.py +0 -0
- triples/core/preprocess/tests/test_elimination.py +57 -0
- triples/core/preprocess/tests/test_signs.py +179 -0
- triples/core/problem.py +992 -0
- triples/core/sdpsos/__init__.py +12 -0
- triples/core/sdpsos/abstract.py +586 -0
- triples/core/sdpsos/algebra/__init__.py +17 -0
- triples/core/sdpsos/algebra/basis.py +241 -0
- triples/core/sdpsos/algebra/moment_algebra.py +193 -0
- triples/core/sdpsos/algebra/nc_poly_ring.py +122 -0
- triples/core/sdpsos/algebra/poly_ring.py +108 -0
- triples/core/sdpsos/algebra/pseudo_poly.py +321 -0
- triples/core/sdpsos/algebra/state_algebra.py +169 -0
- triples/core/sdpsos/manifold.py +426 -0
- triples/core/sdpsos/models/sdpsossolver_length_model.npz +0 -0
- triples/core/sdpsos/models/sdpsossolver_prob_model.npz +0 -0
- triples/core/sdpsos/models/sdpsossolver_time_model.npz +0 -0
- triples/core/sdpsos/sdpsos.py +589 -0
- triples/core/sdpsos/sohs.py +166 -0
- triples/core/sdpsos/solution.py +200 -0
- triples/core/sdpsos/sos.py +265 -0
- triples/core/sdpsos/sos_moment.py +145 -0
- triples/core/sdpsos/tests/__init__.py +0 -0
- triples/core/sdpsos/tests/test_sos_obj.py +43 -0
- triples/core/shared.py +55 -0
- triples/core/solution.py +617 -0
- triples/core/structsos/__init__.py +8 -0
- triples/core/structsos/constrained/__init__.py +3 -0
- triples/core/structsos/constrained/acute.py +401 -0
- triples/core/structsos/constrained/linear.py +140 -0
- triples/core/structsos/constrained/solver.py +39 -0
- triples/core/structsos/constrained/tests/__init__.py +0 -0
- triples/core/structsos/constrained/tests/test_constrained.py +28 -0
- triples/core/structsos/nvars/__init__.py +9 -0
- triples/core/structsos/nvars/linear.py +51 -0
- triples/core/structsos/nvars/quadratic.py +236 -0
- triples/core/structsos/nvars/quartic.py +240 -0
- triples/core/structsos/nvars/solver.py +86 -0
- triples/core/structsos/nvars/tests/__init__.py +0 -0
- triples/core/structsos/nvars/tests/test_nvars.py +29 -0
- triples/core/structsos/pivoting/__init__.py +5 -0
- triples/core/structsos/pivoting/bivariate.py +206 -0
- triples/core/structsos/quaternary/__init__.py +6 -0
- triples/core/structsos/quaternary/cubic.py +179 -0
- triples/core/structsos/quaternary/dense_symmetric.py +64 -0
- triples/core/structsos/quaternary/quartic.py +166 -0
- triples/core/structsos/quaternary/quartic_symmetric.py +588 -0
- triples/core/structsos/quaternary/quintic.py +454 -0
- triples/core/structsos/quaternary/solver.py +136 -0
- triples/core/structsos/quaternary/tests/__init__.py +0 -0
- triples/core/structsos/quaternary/tests/test_quaternary.py +28 -0
- triples/core/structsos/quaternary/utils.py +10 -0
- triples/core/structsos/solution.py +97 -0
- triples/core/structsos/sparse.py +104 -0
- triples/core/structsos/structsos.py +125 -0
- triples/core/structsos/ternary/__init__.py +18 -0
- triples/core/structsos/ternary/acyclic.py +17 -0
- triples/core/structsos/ternary/cubic.py +579 -0
- triples/core/structsos/ternary/dense_symmetric.py +317 -0
- triples/core/structsos/ternary/nonic.py +505 -0
- triples/core/structsos/ternary/octic.py +32 -0
- triples/core/structsos/ternary/octic_symmetric.py +863 -0
- triples/core/structsos/ternary/quadratic.py +119 -0
- triples/core/structsos/ternary/quartic.py +1120 -0
- triples/core/structsos/ternary/quintic.py +1952 -0
- triples/core/structsos/ternary/quintic_symmetric.py +785 -0
- triples/core/structsos/ternary/septic.py +577 -0
- triples/core/structsos/ternary/septic_symmetric.py +514 -0
- triples/core/structsos/ternary/sextic.py +996 -0
- triples/core/structsos/ternary/sextic_symmetric.py +2302 -0
- triples/core/structsos/ternary/solver.py +127 -0
- triples/core/structsos/ternary/sparse.py +805 -0
- triples/core/structsos/ternary/tests/__init__.py +0 -0
- triples/core/structsos/ternary/tests/test_ternary.py +27 -0
- triples/core/structsos/ternary/utils.py +234 -0
- triples/core/structsos/tests/__init__.py +0 -0
- triples/core/structsos/tests/test_univariate.py +83 -0
- triples/core/structsos/univariate.py +869 -0
- triples/core/structsos/utils.py +259 -0
- triples/core/sum_of_squares.py +336 -0
- triples/core/symsos/__init__.py +7 -0
- triples/core/symsos/basic.py +335 -0
- triples/core/symsos/representation.py +160 -0
- triples/core/symsos/symmetric.py +400 -0
- triples/core/symsos/symsos.py +127 -0
- triples/core/symsos/tests/__init__.py +0 -0
- triples/core/symsos/tests/test_symsos.py +70 -0
- triples/core/tests/__init__.py +0 -0
- triples/core/tests/test_dispatch.py +91 -0
- triples/core/tests/test_problem.py +42 -0
- triples/gui/__init__.py +19 -0
- triples/gui/grid.py +437 -0
- triples/gui/linebreak.py +355 -0
- triples/gui/sos_manager.py +319 -0
- triples/gui/visualize.py +112 -0
- triples/sdp/__init__.py +22 -0
- triples/sdp/abstract.py +305 -0
- triples/sdp/arithmetic/__init__.py +26 -0
- triples/sdp/arithmetic/eigens.py +283 -0
- triples/sdp/arithmetic/linsolve.py +665 -0
- triples/sdp/arithmetic/lll.py +152 -0
- triples/sdp/arithmetic/matmul.py +399 -0
- triples/sdp/arithmetic/matop.py +555 -0
- triples/sdp/arithmetic/tests/__init__.py +0 -0
- triples/sdp/arithmetic/tests/test_eigens.py +42 -0
- triples/sdp/arithmetic/tests/test_matmul.py +121 -0
- triples/sdp/backends/__init__.py +21 -0
- triples/sdp/backends/backend.py +271 -0
- triples/sdp/backends/caller.py +407 -0
- triples/sdp/backends/clarabel_sdp.py +84 -0
- triples/sdp/backends/cvxopt_sdp.py +97 -0
- triples/sdp/backends/cvxpy_sdp.py +152 -0
- triples/sdp/backends/mosek_sdp.py +121 -0
- triples/sdp/backends/picos_sdp.py +90 -0
- triples/sdp/backends/qics_sdp.py +75 -0
- triples/sdp/backends/sdpap_sdp.py +67 -0
- triples/sdp/backends/settings.py +251 -0
- triples/sdp/backends/tests/__init__.py +0 -0
- triples/sdp/backends/tests/test_backends.py +279 -0
- triples/sdp/dual.py +1284 -0
- triples/sdp/ipm.py +509 -0
- triples/sdp/primal.py +521 -0
- triples/sdp/rationalize.py +385 -0
- triples/sdp/tests/__init__.py +0 -0
- triples/sdp/tests/test_dual.py +43 -0
- triples/sdp/tests/test_primal.py +48 -0
- triples/sdp/transforms/__init__.py +15 -0
- triples/sdp/transforms/linear.py +280 -0
- triples/sdp/transforms/parametric.py +48 -0
- triples/sdp/transforms/polytope.py +253 -0
- triples/sdp/transforms/transform.py +92 -0
- triples/sdp/transforms/transformable.py +198 -0
- triples/sdp/utils.py +370 -0
- triples/testing/__init__.py +0 -0
- triples/testing/doctest_parser.py +522 -0
- triples/testing/fix_code_quality.py +57 -0
- triples/testing/tests/__init__.py +0 -0
- triples/testing/tests/test_dependency.py +66 -0
- triples/utils/__init__.py +41 -0
- triples/utils/expressions/__init__.py +26 -0
- triples/utils/expressions/coeff.py +745 -0
- triples/utils/expressions/cyclic.py +1048 -0
- triples/utils/expressions/exraw.py +61 -0
- triples/utils/expressions/psatz.py +1161 -0
- triples/utils/expressions/soscone.py +718 -0
- triples/utils/expressions/tests/__init__.py +0 -0
- triples/utils/expressions/tests/test_coeff.py +70 -0
- triples/utils/expressions/tests/test_cyclic.py +145 -0
- triples/utils/monomials.py +1149 -0
- triples/utils/normalforms.py +261 -0
- triples/utils/pqr.py +202 -0
- triples/utils/roots/__init__.py +27 -0
- triples/utils/roots/extrema.py +759 -0
- triples/utils/roots/monotonic_opt.py +497 -0
- triples/utils/roots/num_extrema.py +503 -0
- triples/utils/roots/polysolve.py +375 -0
- triples/utils/roots/rationalize.py +426 -0
- triples/utils/roots/root_list.py +166 -0
- triples/utils/roots/roots.py +1161 -0
- triples/utils/roots/tests/__init__.py +0 -0
- triples/utils/roots/tests/test_extrema.py +56 -0
- triples/utils/roots/tests/test_num_extrema.py +77 -0
- triples/utils/roots/tests/test_roots.py +124 -0
- triples/utils/tests/__init__.py +0 -0
- triples/utils/tests/test_text_process.py +113 -0
- triples/utils/text_process.py +1131 -0
- triples/utils/tree_predictor.py +277 -0
- triples-0.1.0.dist-info/METADATA +772 -0
- triples-0.1.0.dist-info/RECORD +210 -0
- triples-0.1.0.dist-info/WHEEL +5 -0
- triples-0.1.0.dist-info/licenses/LICENSE +674 -0
- triples-0.1.0.dist-info/top_level.txt +1 -0
triples/__init__.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
from .utils import pl, CyclicSum, CyclicProduct, generate_monoms
|
|
2
|
+
|
|
3
|
+
from .core import sum_of_squares, StructuralSOS, LinearSOS, SDPSOS, SOSPoly
|
|
4
|
+
|
|
5
|
+
from .sdp import SDPProblem, congruence
|
|
6
|
+
|
|
7
|
+
__version__ = "0.1.0"
|
|
8
|
+
|
|
9
|
+
__all__ = [
|
|
10
|
+
'__version__',
|
|
11
|
+
|
|
12
|
+
'pl', 'CyclicSum', 'CyclicProduct', 'generate_monoms',
|
|
13
|
+
'sum_of_squares', 'StructuralSOS', 'LinearSOS', 'SDPSOS', 'SOSPoly',
|
|
14
|
+
'SDPProblem', 'congruence'
|
|
15
|
+
]
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
from .problem_set import ProblemSet, mark
|
|
2
|
+
|
|
3
|
+
from .books import (
|
|
4
|
+
MathematicalInequalitiesVol1,
|
|
5
|
+
MathematicalInequalitiesVol2,
|
|
6
|
+
MathematicalInequalitiesVol3
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
from .contests import (
|
|
10
|
+
CMOProblems, ChinaHighSchoolMathLeague2, CTSTProblems,
|
|
11
|
+
IMOProblems, IMOSLProblems
|
|
12
|
+
)
|
|
13
|
+
|
|
14
|
+
__all__ = ['ProblemSet', 'mark',
|
|
15
|
+
'MathematicalInequalitiesVol1', 'MathematicalInequalitiesVol2', 'MathematicalInequalitiesVol3',
|
|
16
|
+
'CMOProblems', 'ChinaHighSchoolMathLeague2', 'CTSTProblems',
|
|
17
|
+
'IMOProblems', 'IMOSLProblems'
|
|
18
|
+
]
|