Skip to content

Conversation

@IanWood1
Copy link
Contributor

@IanWood1 IanWood1 commented Nov 20, 2025

Generalizes the lhs matching to handle arbitrary permutations, not just swaps. For example, the current algorithm cannot handle affine_map<(d0, d1, d2, d3, d4, d5) -> (d0, d2, d3, d5)> to affine_map<(d0, d1, d2, d3, d4, d5) -> (d0, d3, d4, d5)> because the first map does not contain d4 and the second does not contain d2.

This also fixes applyPermutationToVector to apply the inverse permutation to match the permutation applied to the indexing maps (map.compose(interchangeMap)). This used to work because perm = inv(perm) when perm is just swapping pairs.

Progress on #22631

Signed-off-by: Ian Wood <[email protected]>
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.

1 participant