Reference: Set-Like Objects¶
Point¶
Quasiconvex set¶
- class namedisl.BasicSet(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
- add_constraint(cns: Constraint, /) BasicSet[source]¶
- var_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.
- eliminate(names: Collection[str], *, cache: Cache | None = None) Self[source]¶
Keeps the dimensions, but eliminates constraints.
- project_out(names: str | Collection[str], *, cache: Cache | None = None) Self[source]¶
Eliminates the dimensions and constraints.
- project_out_except(names_to_keep: Collection[str], *, dim_type: DimType | Literal['all'], cache: Cache | None = None) Self[source]¶
Eliminates the dimensions and constraints within dim_type except the ones named.
- 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.
General set¶
- class namedisl.Set(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- card(*, cache: Cache | None = None) PwQPolynomial[source]¶
Available if the underlying
islpywas built with barvinok. (But do note the license implications.)
- 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.
- 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_basic() BasicSet[source]¶
Will only succeed if self consists of a single piece. Try
coalesce()if not.
- as_pw_multi_aff() PwMultiAff[source]¶
- eliminate(names: Collection[str], *, cache: Cache | None = None) Self[source]¶
Keeps the dimensions, but eliminates constraints.
- project_out(names: str | Collection[str], *, cache: Cache | None = None) Self[source]¶
Eliminates the dimensions and constraints.
- project_out_except(names_to_keep: Collection[str], *, dim_type: DimType | Literal['all'], cache: Cache | None = None) Self[source]¶
Eliminates the dimensions and constraints within dim_type except the ones named.
- 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_set(src: str, ctx: Context | None = None) Set[source]¶
- namedisl.make_set(src: Set) Set
- class namedisl.StrideInfo(_obj: StrideInfo)[source]¶
- stride¶
- offset¶
Quasiconvex map¶
- class namedisl.BasicMap(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- eliminate(names: Collection[str], *, cache: Cache | None = None) Self[source]¶
Keeps the dimensions, but eliminates constraints.
- project_out(names: str | Collection[str], *, cache: Cache | None = None) Self[source]¶
Eliminates the dimensions and constraints.
- project_out_except(names_to_keep: Collection[str], *, dim_type: DimType | Literal['all'], cache: Cache | None = None) Self[source]¶
Eliminates the dimensions and constraints within dim_type except the ones named.
- 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.
General map¶
- class namedisl.Map(_obj: IslObjectT_co, space: Space, _isl_names_ok: bool = False)[source]¶
-
- as_basic() BasicMap[source]¶
Will only succeed if self consists of a single piece. Try
coalesce()if not.
- domain_var_pw_affs¶
Returns a lazily-evaluated mapping from dimension names (or zero) to
PwAffs for the domain variables of selfNote
Lazy evaluation means you do not pay for the creation of unused dimensions.
- range_var_pw_affs¶
Returns a lazily-evaluated mapping from dimension names (or zero) to
PwAffs for the domain variables of selfNote
Lazy evaluation means you do not pay for the creation of unused dimensions.
- as_pw_multi_aff() PwMultiAff[source]¶
- eliminate(names: Collection[str], *, cache: Cache | None = None) Self[source]¶
Keeps the dimensions, but eliminates constraints.
- project_out(names: str | Collection[str], *, cache: Cache | None = None) Self[source]¶
Eliminates the dimensions and constraints.
- project_out_except(names_to_keep: Collection[str], *, dim_type: DimType | Literal['all'], cache: Cache | None = None) Self[source]¶
Eliminates the dimensions and constraints within dim_type except the ones named.
- 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.