Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

affine transform util: add interoperability with AffineMaps #324

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

jorendumoulin
Copy link
Contributor

@jorendumoulin jorendumoulin commented Jan 2, 2025

to keep interoperability with xdsl afinemaps, and to enable a more gradual migration to affinetransforms, include the constructors from_affine_map and to_affine_map

@jorendumoulin jorendumoulin changed the title affine transform util: add constructor from AffineMaps affine transform util: add interoperability with AffineMaps Jan 2, 2025
Base automatically changed from joren/affine-transform-util to main January 3, 2025 10:14
@jorendumoulin jorendumoulin force-pushed the joren/affine-util-from-map branch from c88d37a to c033f38 Compare January 3, 2025 10:15
Copy link
Contributor

@JosseVanDelm JosseVanDelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are looking great, but could you add a bit more descriptive comments?

E.g. right now it is quite difficult to read what is going on.

For example, what does generate_one_list do?
Something like:

construct a matrix representation of the affine expression by evaluating the dimensions one by one...

Also, can you add a check such that the input affine expr does not contain any of the invariants (floordiv/ceildiv)?

Copy link
Contributor

@JosseVanDelm JosseVanDelm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jorendumoulin !!!

@jorendumoulin jorendumoulin merged commit 6a1991c into main Jan 6, 2025
14 checks passed
@jorendumoulin jorendumoulin deleted the joren/affine-util-from-map branch January 6, 2025 11:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants