Skip to content

Commit 5d41b02

Browse files
committed
get_constant -> constant attr
1 parent 4cbee4c commit 5d41b02

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

namedisl/expression_like.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ class _NamedHasCoefficients(NamedIslObject[IslHasCoefficientsT_co]):
332332
.. automethod:: get_div
333333
.. automethod:: get_div_coefficient
334334
335-
.. automethod:: get_constant
335+
.. autoattribute:: constant
336336
"""
337337

338338
@property
@@ -349,7 +349,8 @@ def get_coefficient(self, name: str) -> isl.Val:
349349
dt, idx = self.space.name_to_dim[name]
350350
return self._obj.get_coefficient_val(dt.as_isl(), idx)
351351

352-
def get_constant(self) -> isl.Val:
352+
@property
353+
def constant(self) -> isl.Val:
353354
return self._obj.get_constant_val()
354355

355356

0 commit comments

Comments
 (0)