Skip to content

Aff get_coefficients_by_name intended behavior? #24

@thisiscam

Description

@thisiscam
import islpy
aff = islpy.Aff("[N] -> { [x] -> [x+1] } ")
aff.get_coefficients_by_name(dimtype=None)

gives

isl_aff.c:763: output/set dimension does not have a coefficient

According the doc, setting dimtype to None should produce the coefficients for all dimensions?
I digged a little, in the generated _isl.py,

_CHECK_DIM_TYPES = [
        dim_type.in_, dim_type.param, dim_type.set]

which is used by obj_get_coefficients_by_name to retrieve the coefficients. When does Aff has a set dimension? Is this a bug or intended behavior?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions