islpy 2025.2.4__cp312-cp312-macosx_11_0_arm64.whl → 2025.2.5__cp312-cp312-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.
islpy/_isl.pyi CHANGED
@@ -1976,6 +1976,8 @@ class MultiVal:
1976
1976
 
1977
1977
  get_var_names = islpy._monkeypatch.obj_get_var_names
1978
1978
 
1979
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
1980
+
1979
1981
  __reduce__ = islpy._monkeypatch.generic_reduce
1980
1982
 
1981
1983
  __str__ = islpy._monkeypatch.generic_str
@@ -2558,6 +2560,8 @@ class Aff:
2558
2560
 
2559
2561
  get_var_names = islpy._monkeypatch.obj_get_var_names
2560
2562
 
2563
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
2564
+
2561
2565
  __reduce__ = islpy._monkeypatch.generic_reduce
2562
2566
 
2563
2567
  __str__ = islpy._monkeypatch.generic_str
@@ -2900,6 +2904,8 @@ class PwAff:
2900
2904
 
2901
2905
  get_var_names = islpy._monkeypatch.obj_get_var_names
2902
2906
 
2907
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
2908
+
2903
2909
  __reduce__ = islpy._monkeypatch.generic_reduce
2904
2910
 
2905
2911
  __str__ = islpy._monkeypatch.generic_str
@@ -3048,6 +3054,8 @@ class UnionPwAff:
3048
3054
 
3049
3055
  get_var_names = islpy._monkeypatch.obj_get_var_names
3050
3056
 
3057
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
3058
+
3051
3059
  __reduce__ = islpy._monkeypatch.generic_reduce
3052
3060
 
3053
3061
  __str__ = islpy._monkeypatch.generic_str
@@ -3122,6 +3130,8 @@ class MultiId:
3122
3130
 
3123
3131
  get_var_names = islpy._monkeypatch.obj_get_var_names
3124
3132
 
3133
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
3134
+
3125
3135
  __reduce__ = islpy._monkeypatch.generic_reduce
3126
3136
 
3127
3137
  __str__ = islpy._monkeypatch.generic_str
@@ -3506,6 +3516,8 @@ class MultiAff:
3506
3516
 
3507
3517
  get_var_names = islpy._monkeypatch.obj_get_var_names
3508
3518
 
3519
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
3520
+
3509
3521
  __reduce__ = islpy._monkeypatch.generic_reduce
3510
3522
 
3511
3523
  __str__ = islpy._monkeypatch.generic_str
@@ -3826,6 +3838,8 @@ class PwMultiAff:
3826
3838
 
3827
3839
  get_var_names = islpy._monkeypatch.obj_get_var_names
3828
3840
 
3841
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
3842
+
3829
3843
  __reduce__ = islpy._monkeypatch.generic_reduce
3830
3844
 
3831
3845
  __str__ = islpy._monkeypatch.generic_str
@@ -3999,6 +4013,8 @@ class UnionPwMultiAff:
3999
4013
 
4000
4014
  get_var_names = islpy._monkeypatch.obj_get_var_names
4001
4015
 
4016
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
4017
+
4002
4018
  __reduce__ = islpy._monkeypatch.generic_reduce
4003
4019
 
4004
4020
  __str__ = islpy._monkeypatch.generic_str
@@ -4238,6 +4254,8 @@ class MultiPwAff:
4238
4254
 
4239
4255
  get_var_names = islpy._monkeypatch.obj_get_var_names
4240
4256
 
4257
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
4258
+
4241
4259
  __reduce__ = islpy._monkeypatch.generic_reduce
4242
4260
 
4243
4261
  __str__ = islpy._monkeypatch.generic_str
@@ -4429,6 +4447,8 @@ class MultiUnionPwAff:
4429
4447
 
4430
4448
  get_var_names = islpy._monkeypatch.obj_get_var_names
4431
4449
 
4450
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
4451
+
4432
4452
  __reduce__ = islpy._monkeypatch.generic_reduce
4433
4453
 
4434
4454
  __str__ = islpy._monkeypatch.generic_str
@@ -4557,6 +4577,8 @@ class Constraint:
4557
4577
 
4558
4578
  get_var_names = islpy._monkeypatch.obj_get_var_names
4559
4579
 
4580
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
4581
+
4560
4582
  __str__ = islpy._monkeypatch.generic_str
4561
4583
 
4562
4584
  __repr__ = islpy._monkeypatch.generic_repr
@@ -4926,6 +4948,8 @@ class LocalSpace:
4926
4948
 
4927
4949
  get_var_names = islpy._monkeypatch.obj_get_var_names
4928
4950
 
4951
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
4952
+
4929
4953
  __str__ = islpy._monkeypatch.generic_str
4930
4954
 
4931
4955
  __repr__ = islpy._monkeypatch.generic_repr
@@ -5483,6 +5507,8 @@ class BasicSet:
5483
5507
 
5484
5508
  get_var_names = islpy._monkeypatch.obj_get_var_names
5485
5509
 
5510
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
5511
+
5486
5512
  __reduce__ = islpy._monkeypatch.generic_reduce
5487
5513
 
5488
5514
  __str__ = islpy._monkeypatch.generic_str
@@ -6242,6 +6268,8 @@ class BasicMap:
6242
6268
 
6243
6269
  get_var_names = islpy._monkeypatch.obj_get_var_names
6244
6270
 
6271
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
6272
+
6245
6273
  __reduce__ = islpy._monkeypatch.generic_reduce
6246
6274
 
6247
6275
  __str__ = islpy._monkeypatch.generic_str
@@ -6748,6 +6776,8 @@ class Set:
6748
6776
 
6749
6777
  get_var_names = islpy._monkeypatch.obj_get_var_names
6750
6778
 
6779
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
6780
+
6751
6781
  __reduce__ = islpy._monkeypatch.generic_reduce
6752
6782
 
6753
6783
  __str__ = islpy._monkeypatch.generic_str
@@ -7425,6 +7455,8 @@ class Map:
7425
7455
 
7426
7456
  get_var_names = islpy._monkeypatch.obj_get_var_names
7427
7457
 
7458
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
7459
+
7428
7460
  __reduce__ = islpy._monkeypatch.generic_reduce
7429
7461
 
7430
7462
  __str__ = islpy._monkeypatch.generic_str
@@ -7624,6 +7656,8 @@ class UnionSet:
7624
7656
 
7625
7657
  get_var_names = islpy._monkeypatch.obj_get_var_names
7626
7658
 
7659
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
7660
+
7627
7661
  __reduce__ = islpy._monkeypatch.generic_reduce
7628
7662
 
7629
7663
  __str__ = islpy._monkeypatch.generic_str
@@ -7940,6 +7974,8 @@ class UnionMap:
7940
7974
 
7941
7975
  get_var_names = islpy._monkeypatch.obj_get_var_names
7942
7976
 
7977
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
7978
+
7943
7979
  __reduce__ = islpy._monkeypatch.generic_reduce
7944
7980
 
7945
7981
  __str__ = islpy._monkeypatch.generic_str
@@ -7988,6 +8024,8 @@ class Point:
7988
8024
 
7989
8025
  get_var_names = islpy._monkeypatch.obj_get_var_names
7990
8026
 
8027
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
8028
+
7991
8029
  __str__ = islpy._monkeypatch.generic_str
7992
8030
 
7993
8031
  __repr__ = islpy._monkeypatch.generic_repr
@@ -8162,6 +8200,8 @@ class QPolynomial:
8162
8200
 
8163
8201
  get_var_names = islpy._monkeypatch.obj_get_var_names
8164
8202
 
8203
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
8204
+
8165
8205
  __str__ = islpy._monkeypatch.generic_str
8166
8206
 
8167
8207
  __repr__ = islpy._monkeypatch.generic_repr
@@ -8333,6 +8373,8 @@ class PwQPolynomial:
8333
8373
 
8334
8374
  get_var_names = islpy._monkeypatch.obj_get_var_names
8335
8375
 
8376
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
8377
+
8336
8378
  __reduce__ = islpy._monkeypatch.generic_reduce
8337
8379
 
8338
8380
  __str__ = islpy._monkeypatch.generic_str
@@ -8391,6 +8433,8 @@ class QPolynomialFold:
8391
8433
 
8392
8434
  get_var_names = islpy._monkeypatch.obj_get_var_names
8393
8435
 
8436
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
8437
+
8394
8438
  __str__ = islpy._monkeypatch.generic_str
8395
8439
 
8396
8440
  __repr__ = islpy._monkeypatch.generic_repr
@@ -8522,6 +8566,8 @@ class PwQPolynomialFold:
8522
8566
 
8523
8567
  get_var_names = islpy._monkeypatch.obj_get_var_names
8524
8568
 
8569
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
8570
+
8525
8571
  __reduce__ = islpy._monkeypatch.generic_reduce
8526
8572
 
8527
8573
  __str__ = islpy._monkeypatch.generic_str
@@ -8626,6 +8672,8 @@ class UnionPwQPolynomialFold:
8626
8672
 
8627
8673
  get_var_names = islpy._monkeypatch.obj_get_var_names
8628
8674
 
8675
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
8676
+
8629
8677
  __str__ = islpy._monkeypatch.generic_str
8630
8678
 
8631
8679
  __repr__ = islpy._monkeypatch.generic_repr
@@ -8743,6 +8791,8 @@ class UnionPwQPolynomial:
8743
8791
 
8744
8792
  get_var_names = islpy._monkeypatch.obj_get_var_names
8745
8793
 
8794
+ get_var_names_not_none = islpy._monkeypatch.obj_get_var_names_not_none
8795
+
8746
8796
  __reduce__ = islpy._monkeypatch.generic_reduce
8747
8797
 
8748
8798
  __str__ = islpy._monkeypatch.generic_str
islpy/_monkeypatch.py CHANGED
@@ -616,10 +616,34 @@ def obj_get_var_ids(
616
616
 
617
617
 
618
618
  @_memoize_on_first_arg
619
- def obj_get_var_names(self: HasSpace, dimtype: _isl.dim_type) -> Sequence[str | None]:
620
- """Return a list of dim names (in order) for :class:`dim_type` *dimtype*."""
619
+ def obj_get_var_names_not_none(
620
+ self: HasSpace,
621
+ dimtype: _isl.dim_type,
622
+ ) -> Sequence[str]:
623
+ """Return a list of dim names (in order) for :class:`dim_type` *dimtype*.
624
+
625
+ Raise :exc:`ValueError` if any of the names is *None*.
626
+
627
+ .. versionadded:: 2025.2.5
628
+ """
629
+ ndim = self.dim(dimtype)
630
+ res = [n
631
+ for i in range(ndim)
632
+ if (n := self.get_dim_name(dimtype, i)) is not None]
633
+ if len(res) != ndim:
634
+ raise ValueError("None encountered in dim names")
635
+ return res
636
+
637
+
638
+ @_memoize_on_first_arg
639
+ def obj_get_var_names(
640
+ self: HasSpace,
641
+ dimtype: _isl.dim_type,
642
+ ) -> Sequence[str | None]:
643
+ """Return a list of dim names (in order) for :class:`dim_type` *dimtype*.
644
+ """
621
645
  return [self.get_dim_name(dimtype, i)
622
- for i in range(self.dim(dimtype))]
646
+ for i in range(self.dim(dimtype))]
623
647
 
624
648
 
625
649
  def pwaff_get_pieces(self: _isl.PwAff | _isl.Aff) -> list[tuple[_isl.Set, _isl.Aff]]:
@@ -1037,6 +1061,7 @@ for cls in ALL_CLASSES:
1037
1061
  cls.get_var_dict = obj_get_var_dict
1038
1062
  cls.get_var_ids = obj_get_var_ids
1039
1063
  cls.get_var_names = obj_get_var_names
1064
+ cls.get_var_names_not_none = obj_get_var_names_not_none
1040
1065
 
1041
1066
  # }}}
1042
1067
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: islpy
3
- Version: 2025.2.4
3
+ Version: 2025.2.5
4
4
  Summary: Wrapper around isl, an integer set library
5
5
  Author-Email: Andreas Kloeckner <inform@tiker.net>
6
6
  License-Expression: MIT
@@ -0,0 +1,9 @@
1
+ islpy/_isl.cpython-312-darwin.so,sha256=L0xSqcH53ZNJzmqWcHtEk8v1pkO04eskIdH5Zs64Wyo,7927080
2
+ islpy/version.py,sha256=9KVEg7OX9uCaA6ElUMeiAh-zDrxsy3u2H6VQm_-LTUE,301
3
+ islpy/__init__.py,sha256=0AdPhWQMf1DUB5DDisLP39rN0djxueftEWqfX4_R5Hk,13363
4
+ islpy/_isl.pyi,sha256=c9l3pXn3DEtGO0WscxXu6RsfK1WseF0hdE7oFncXUnA,262025
5
+ islpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
+ islpy/_monkeypatch.py,sha256=3ji2nD8gYxY59qwjJiasmeKOI0oSbrxEiXbswjmJXoU,34881
7
+ islpy-2025.2.5.dist-info/RECORD,,
8
+ islpy-2025.2.5.dist-info/WHEEL,sha256=jwI1UV7t8eDr7vFsaDCZqQcuoACnouNl_14QAy0dZhI,141
9
+ islpy-2025.2.5.dist-info/METADATA,sha256=dFfe1_neHbSBhU6nwxnsMoO3bNIt1zonZaKdTbVDIbw,2966
@@ -1,9 +0,0 @@
1
- islpy/_isl.cpython-312-darwin.so,sha256=L0xSqcH53ZNJzmqWcHtEk8v1pkO04eskIdH5Zs64Wyo,7927080
2
- islpy/version.py,sha256=9KVEg7OX9uCaA6ElUMeiAh-zDrxsy3u2H6VQm_-LTUE,301
3
- islpy/__init__.py,sha256=0AdPhWQMf1DUB5DDisLP39rN0djxueftEWqfX4_R5Hk,13363
4
- islpy/_isl.pyi,sha256=OI3MI4rqq4XZ3CTXTbmS__lClCMynkL9MxERZ-KgWLk,260125
5
- islpy/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
- islpy/_monkeypatch.py,sha256=80xulld5N-jIJbWLGBYSuPnO1CG1N-Z3jVgiNRkkJ9U,34216
7
- islpy-2025.2.4.dist-info/RECORD,,
8
- islpy-2025.2.4.dist-info/WHEEL,sha256=jwI1UV7t8eDr7vFsaDCZqQcuoACnouNl_14QAy0dZhI,141
9
- islpy-2025.2.4.dist-info/METADATA,sha256=bCRATmwgpiAGBbVa21X7Cqg9fPZNkdFDnuXO4_80yn8,2966