codac4matlab 2.0.0.dev23__cp311-cp311-macosx_11_0_arm64.whl → 2.0.0.dev25__cp311-cp311-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.
- codac4matlab/_core.cpython-311-darwin.so +0 -0
- codac4matlab/_graphics.cpython-311-darwin.so +0 -0
- codac4matlab/core/__init__.py +9 -9
- codac4matlab/tests/test_CtcInverse.py +1 -1
- codac4matlab/tests/test_Parallelepiped.py +1 -0
- codac4matlab/tests/test_cart_prod.py +1 -0
- {codac4matlab-2.0.0.dev23.dist-info → codac4matlab-2.0.0.dev25.dist-info}/METADATA +1 -1
- {codac4matlab-2.0.0.dev23.dist-info → codac4matlab-2.0.0.dev25.dist-info}/RECORD +10 -10
- {codac4matlab-2.0.0.dev23.dist-info → codac4matlab-2.0.0.dev25.dist-info}/WHEEL +1 -1
- {codac4matlab-2.0.0.dev23.dist-info → codac4matlab-2.0.0.dev25.dist-info}/top_level.txt +0 -0
|
Binary file
|
|
Binary file
|
codac4matlab/core/__init__.py
CHANGED
|
@@ -118,10 +118,10 @@ class CtcInverse(Ctc_IntervalVector):
|
|
|
118
118
|
f_args = []
|
|
119
119
|
for a in f.args():
|
|
120
120
|
if a.size() == 1:
|
|
121
|
-
f_args.append(total_var
|
|
121
|
+
f_args.append(total_var.get_item_0(i))
|
|
122
122
|
i = i+1
|
|
123
123
|
else:
|
|
124
|
-
f_args.append(total_var.
|
|
124
|
+
f_args.append(total_var.subvector_0(i,i+a.size()-1))
|
|
125
125
|
i = i+a.size()
|
|
126
126
|
|
|
127
127
|
g = AnalyticFunction([total_var], f(*f_args))
|
|
@@ -156,9 +156,9 @@ class CtcInverse(Ctc_IntervalVector):
|
|
|
156
156
|
for xi in x:
|
|
157
157
|
k = xi.size()
|
|
158
158
|
if k==1:
|
|
159
|
-
xi &= total
|
|
159
|
+
xi &= total.get_item_0(i)
|
|
160
160
|
else:
|
|
161
|
-
xi &= total.
|
|
161
|
+
xi &= total.subvector_0(i,i+k-1)
|
|
162
162
|
i = i+k
|
|
163
163
|
return x
|
|
164
164
|
|
|
@@ -174,17 +174,17 @@ class CtcInverse(Ctc_IntervalVector):
|
|
|
174
174
|
for xi in x:
|
|
175
175
|
k = xi.size()
|
|
176
176
|
if k==1:
|
|
177
|
-
xi &= total
|
|
177
|
+
xi &= total.get_item_0(i)
|
|
178
178
|
else:
|
|
179
|
-
xi &= total.
|
|
179
|
+
xi &= total.subvector_0(i,i+k-1)
|
|
180
180
|
i = i+k
|
|
181
181
|
return x
|
|
182
182
|
|
|
183
183
|
def copy(self):
|
|
184
184
|
return self.c.copy()
|
|
185
185
|
|
|
186
|
-
def
|
|
187
|
-
return self.c.
|
|
186
|
+
def fnc(self):
|
|
187
|
+
return self.c.fnc()
|
|
188
188
|
|
|
189
189
|
|
|
190
190
|
class CtcInverseNotIn(Ctc_IntervalVector):
|
|
@@ -565,7 +565,7 @@ def fixpoint(contract, *x):
|
|
|
565
565
|
x = contract(x)
|
|
566
566
|
|
|
567
567
|
if not isinstance(x,tuple):
|
|
568
|
-
vol = x
|
|
568
|
+
vol = x.get_item_0(0).volume()
|
|
569
569
|
else:
|
|
570
570
|
vol = 0.0
|
|
571
571
|
for xi in x:
|
|
@@ -29,6 +29,7 @@ class TestParallelepiped(unittest.TestCase):
|
|
|
29
29
|
z = p.proj([2,1,0])
|
|
30
30
|
self.assertTrue(z.z == Vector([4,2,0]))
|
|
31
31
|
self.assertTrue(z.A == Matrix([[0,1,1],[0,1,0],[0.5,0,0]]))
|
|
32
|
+
self.assertTrue(z.box() == IntervalVector([[2,6],[1,3],[-0.5,0.5]]))
|
|
32
33
|
|
|
33
34
|
if __name__ == '__main__':
|
|
34
35
|
unittest.main()
|
|
@@ -32,6 +32,7 @@ class TestIntervalVector(unittest.TestCase):
|
|
|
32
32
|
self.assertTrue(cart_prod(IntervalVector.empty(3)) == IntervalVector.empty(3))
|
|
33
33
|
self.assertTrue(cart_prod([[0,1],[2,3],[4,5]],[[8,9]]) == IntervalVector([[0,1],[2,3],[4,5],[8,9]]))
|
|
34
34
|
self.assertTrue(cart_prod(25.,[[0,1],[2,3],[4,5]],[[8,9]],Vector.ones(3)) == IntervalVector([[25],[0,1],[2,3],[4,5],[8,9],[1],[1],[1]]))
|
|
35
|
+
self.assertTrue(cart_prod([-oo,oo],[-oo,oo],42.) == IntervalVector([[-oo,oo],[-oo,oo],[42.,42.]]))
|
|
35
36
|
|
|
36
37
|
if __name__ == '__main__':
|
|
37
38
|
unittest.main()
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: codac4matlab
|
|
3
|
-
Version: 2.0.0.
|
|
3
|
+
Version: 2.0.0.dev25
|
|
4
4
|
Summary: Codac is a library providing tools for constraint programming over reals and trajectories.
|
|
5
5
|
Home-page: http://codac.io
|
|
6
6
|
Author: Simon Rohou, Benoit Desrochers, Fabrice Le Bars
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
codac4matlab/__init__.py,sha256=66jJt4HBe0QVnCBA3w2Tjh09dKNuU7YXoG1VGWXpmnM,139
|
|
2
|
-
codac4matlab/_core.cpython-311-darwin.so,sha256=
|
|
3
|
-
codac4matlab/_graphics.cpython-311-darwin.so,sha256=
|
|
2
|
+
codac4matlab/_core.cpython-311-darwin.so,sha256=EH4gBanjjx6riypvHvIYXcMEoCSFy9XplwWdhVS_FIw,8050936
|
|
3
|
+
codac4matlab/_graphics.cpython-311-darwin.so,sha256=J5eQw7uJwJJ_zuL7NJRT_nrPnXeszOPs27U4Ienj-KY,1937216
|
|
4
4
|
codac4matlab/_unsupported.cpython-311-darwin.so,sha256=TkkjbyIeq3v6c2fExKISI9SJZkHw1B23drsZd9ATNJc,146480
|
|
5
5
|
codac4matlab/empty.cpython-311-darwin.so,sha256=d4JYkrLnQr9GvpFnuXKjX_yTKUx6qyzzPYXBTfQ7cII,33120
|
|
6
6
|
codac4matlab/version.py,sha256=6aTsaEKyBHFdzQjDU6jvkF0BXPK1486LAfHKk-VQHKc,19
|
|
7
|
-
codac4matlab/core/__init__.py,sha256=
|
|
7
|
+
codac4matlab/core/__init__.py,sha256=HF3VoUDvrmEHbInL3wqUw0A7-ZqzOXJxc0WFo0FxU6Q,16563
|
|
8
8
|
codac4matlab/graphics/__init__.py,sha256=JhVtofKJJLBAFAJOy3ecPPjlyk4eXgVmGHCK9ZOT7NE,36
|
|
9
9
|
codac4matlab/tests/__init__.py,sha256=p2nc-vz1OyekHP7d82yXsE2hNAtyHREmhuKHBZDS4dg,67
|
|
10
10
|
codac4matlab/tests/test_AnalyticFunction.py,sha256=5b264hmOmi9_YIyRr4qLdsAYirCJLxoHcpytMslGMEs,22716
|
|
@@ -20,7 +20,7 @@ codac4matlab/tests/test_CtcDeriv.py,sha256=HhVp61zZZ53Xn7L3OV_m1ZEmC_WMWq0GxQjss
|
|
|
20
20
|
codac4matlab/tests/test_CtcEval.py,sha256=EapBxTBro30LjJdiY1D2l12N-85IH_2PSodvklJg6kE,6892
|
|
21
21
|
codac4matlab/tests/test_CtcFixpoint.py,sha256=ow4ph85WEXz7u3ZBwePkB3FX07DP497yEENu-NvFkNY,1992
|
|
22
22
|
codac4matlab/tests/test_CtcInter.py,sha256=n43snOZvNzLV13HTB74HkQvoG470F9yWsLMCLdHUBIs,978
|
|
23
|
-
codac4matlab/tests/test_CtcInverse.py,sha256=
|
|
23
|
+
codac4matlab/tests/test_CtcInverse.py,sha256=tiwLcxlOfs5qo_iSzKVwDBlsqP4TKX_xlNRjolWcT_0,6995
|
|
24
24
|
codac4matlab/tests/test_CtcInverseNotIn.py,sha256=At903_KCCJt9vi6B1rxMnt4tEC2mXeAdbnCPTV0EHFY,4182
|
|
25
25
|
codac4matlab/tests/test_CtcLazy.py,sha256=4bJG02ppvr4KdTbI5tovfD76sIKjOsoZKwNFi6UrcAg,1371
|
|
26
26
|
codac4matlab/tests/test_CtcPolygon.py,sha256=TC3ejhh_Hl_QZcJDz8ICCm3-Yjecgkqa77QEJFQ5C0A,2196
|
|
@@ -34,7 +34,7 @@ codac4matlab/tests/test_IntervalVector.py,sha256=VLjAHt00cf0lw9VWhxXt-HtL3H5i2tv
|
|
|
34
34
|
codac4matlab/tests/test_Interval_operations.py,sha256=epwrH4GpkV0j6qYOYNJGR-3Xzwhy3MOgsxvO9xOvJ1k,15196
|
|
35
35
|
codac4matlab/tests/test_Matrix.py,sha256=ayJVjGjatlFqOUHjhaCodV4Q6Q-4XcuYbCwCDABbSu8,1468
|
|
36
36
|
codac4matlab/tests/test_OctaSym.py,sha256=sS3W8pqBXifR7bVbBef1xxJMLucUS4rO-uPG0X1AuSU,1256
|
|
37
|
-
codac4matlab/tests/test_Parallelepiped.py,sha256=
|
|
37
|
+
codac4matlab/tests/test_Parallelepiped.py,sha256=PQ60A5Vjv_lqRIlpawYT428xFcDJIZzsZPMCo99mT-s,1277
|
|
38
38
|
codac4matlab/tests/test_Parallelepiped_eval.py,sha256=15Ti5YOesEpcuFoKvyJ6wO2vuwUarsdWtnaCnysoIAY,1877
|
|
39
39
|
codac4matlab/tests/test_Polygon.py,sha256=GyrPVbE3cJmUIsCcY_aAHec48i8snYUf-S8dojmuTcU,5092
|
|
40
40
|
codac4matlab/tests/test_SampledTraj.py,sha256=GSmqhB59MDPVvKOad_nJ2PpvW32_iJ9jNxSI7sKRuoA,3916
|
|
@@ -56,7 +56,7 @@ codac4matlab/tests/test_arithmetic_div.py,sha256=3x5wbWg5K7B3N96YkBrR_fya4yyasy7
|
|
|
56
56
|
codac4matlab/tests/test_arithmetic_mul.py,sha256=TBeIKYjM6bOCzyU_QqmSCmKUIcpDBidZbgGSmU9Ub3o,7906
|
|
57
57
|
codac4matlab/tests/test_arithmetic_sub.py,sha256=TRe0k4FkCzclph4vn3CycztQ8YeqnYTfYGkf8RZ6yLE,3832
|
|
58
58
|
codac4matlab/tests/test_capd.py,sha256=aiFnipFgSlwr8CU5tUsD1V_Rn4sjdJt-1qCrpNl7cuc,432
|
|
59
|
-
codac4matlab/tests/test_cart_prod.py,sha256=
|
|
59
|
+
codac4matlab/tests/test_cart_prod.py,sha256=orhrJTDNa_yTzZ9XLakZaUxA4X7Pdo0FMM_HdTB0ne8,1757
|
|
60
60
|
codac4matlab/tests/test_eigen.py,sha256=R3Ql28tJ_2phK8FGdoFTz9aqZtPc1GQPLhguGIXsMf0,433
|
|
61
61
|
codac4matlab/tests/test_geometry.py,sha256=dHGBEss9Up5oLhtXFIhBXJ0dY9VakkCfz3yZhHsKwO0,5747
|
|
62
62
|
codac4matlab/tests/test_hull.py,sha256=YnTcEcGixovxnq9PrRX-1Q7PTtNvpPHW-8fZhhQs43w,1538
|
|
@@ -70,7 +70,7 @@ codac4matlab/tests/test_serialization.py,sha256=DobdgcEHgJ34jlu0bB9NVMuz0qimiK-6
|
|
|
70
70
|
codac4matlab/tests/test_transformations.py,sha256=p562e72V6_awI1qi10UPZOKQHQO7gk5qe8_OqdTQnDk,1727
|
|
71
71
|
codac4matlab/tests/test_trunc.py,sha256=9Hk2vQRvdFXQwnX3jjLLy5cTlE2Kxr2Rf_XS6iXx9hc,2246
|
|
72
72
|
codac4matlab/unsupported/__init__.py,sha256=z5Xm26-xg1FntpomMqRsqcyqAI8y8C4Db9FMtfx4skI,39
|
|
73
|
-
codac4matlab-2.0.0.
|
|
74
|
-
codac4matlab-2.0.0.
|
|
75
|
-
codac4matlab-2.0.0.
|
|
76
|
-
codac4matlab-2.0.0.
|
|
73
|
+
codac4matlab-2.0.0.dev25.dist-info/METADATA,sha256=wud6gPPNzKEtnXuSGTKuVxUcA5yisboSZnSVrsfz5Ro,790
|
|
74
|
+
codac4matlab-2.0.0.dev25.dist-info/WHEEL,sha256=XD-DGHghEILXGtkCFN1fE7sr6R0XQqA1sIAkYLHzWeA,110
|
|
75
|
+
codac4matlab-2.0.0.dev25.dist-info/top_level.txt,sha256=ZeLeS-8xPyH0yVFjcLqUgqnqV4umnaerrPV-cSX1c_U,13
|
|
76
|
+
codac4matlab-2.0.0.dev25.dist-info/RECORD,,
|
|
File without changes
|