Reference: Expression-Like Objects¶
Quasi-affine expression¶
- class namedisl.Aff(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- var_affs¶
Returns a lazily-evaluated mapping from dimension names (or zero) to
Affs.Note
Lazy evaluation means you do not pay for the creation of unused dimensions.
- num_divs¶
- constant¶
- involves_dims(names: Collection[str]) bool[source]¶
True if self involves any of the given dimensions.
- __eq__(other: object) bool[source]¶
This is intended to be cheap and strict, suitable mainly for hashing. Some subclasses (e.g.
namedisl.Set) may provide a different, ‘mathematically exact’ notion of equality as a different method that is more expensive to check for.
Constraint¶
- class namedisl.Constraint(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
- static equality_from_aff(aff: Aff) Constraint[source]¶
- static inequality_from_aff(aff: Aff) Constraint[source]¶
- is_equality¶
- num_divs¶
- constant¶
- active_dim_types: ClassVar[frozenset[DimType]] = frozenset({DimType.param, DimType.in_, DimType.out})¶
- involves_dims(names: Collection[str]) bool[source]¶
True if self involves any of the given dimensions.
- __eq__(other: object) bool[source]¶
This is intended to be cheap and strict, suitable mainly for hashing. Some subclasses (e.g.
namedisl.Set) may provide a different, ‘mathematically exact’ notion of equality as a different method that is more expensive to check for.
- namedisl.make_constraint(obj: Constraint) Constraint[source]¶
Piecewise quasi-affine expression¶
- class namedisl.PwAff(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- var_pw_affs¶
Returns a lazily-evaluated mapping from dimension names (or zero) to
PwAffs.Note
Lazy evaluation means you do not pay for the creation of unused dimensions.
- as_pw_qpoly() PwQPolynomial[source]¶
- involves_dims(names: Collection[str]) bool[source]¶
True if self involves any of the given dimensions.
- __eq__(other: object) bool[source]¶
This is intended to be cheap and strict, suitable mainly for hashing. Some subclasses (e.g.
namedisl.Set) may provide a different, ‘mathematically exact’ notion of equality as a different method that is more expensive to check for.
Quasipolynomial term¶
Quasipolynomial¶
- class namedisl.QPolynomial(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- involves_dims(names: Collection[str]) bool[source]¶
True if self involves any of the given dimensions.
- __eq__(other: object) bool[source]¶
This is intended to be cheap and strict, suitable mainly for hashing. Some subclasses (e.g.
namedisl.Set) may provide a different, ‘mathematically exact’ notion of equality as a different method that is more expensive to check for.
- namedisl.make_qpolynomial(src: str, ctx: Context | None = None) QPolynomial[source]¶
- namedisl.make_qpolynomial(src: QPolynomial) QPolynomial
Create a
QPolynomialfrom isl syntax or an isl qpolynomial.
Piecewise quasipolynomial¶
- class namedisl.PwQPolynomial(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- static from_piece_and_qpolynomial(piece: Set, qpoly: QPolynomial) PwQPolynomial[source]¶
- involves_dims(names: Collection[str]) bool[source]¶
True if self involves any of the given dimensions.
- __eq__(other: object) bool[source]¶
This is intended to be cheap and strict, suitable mainly for hashing. Some subclasses (e.g.
namedisl.Set) may provide a different, ‘mathematically exact’ notion of equality as a different method that is more expensive to check for.
- namedisl.make_pw_qpolynomial(src: str, ctx: Context | None = None) PwQPolynomial[source]¶
- namedisl.make_pw_qpolynomial(src: PwQPolynomial) PwQPolynomial
Create a
PwQPolynomialfrom isl syntax or an isl object.
Vector-valued quasi-affine expression¶
- class namedisl.MultiAff(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- active_dim_types: ClassVar[frozenset[DimType]] = frozenset({DimType.param, DimType.in_, DimType.out})¶
- involves_dims(names: Collection[str]) bool[source]¶
True if self involves any of the given dimensions.
- __eq__(other: object) bool[source]¶
This is intended to be cheap and strict, suitable mainly for hashing. Some subclasses (e.g.
namedisl.Set) may provide a different, ‘mathematically exact’ notion of equality as a different method that is more expensive to check for.
Piecewise vector-valued quasi-affine expression¶
- class namedisl.PwMultiAff(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- active_dim_types: ClassVar[frozenset[DimType]] = frozenset({DimType.param, DimType.in_, DimType.out})¶
- involves_dims(names: Collection[str]) bool[source]¶
True if self involves any of the given dimensions.
- __eq__(other: object) bool[source]¶
This is intended to be cheap and strict, suitable mainly for hashing. Some subclasses (e.g.
namedisl.Set) may provide a different, ‘mathematically exact’ notion of equality as a different method that is more expensive to check for.
- namedisl.make_pw_multi_aff(src: str, ctx: Context | None = None) PwMultiAff[source]¶
- namedisl.make_pw_multi_aff(src: PwMultiAff) PwMultiAff