Skip to content

Try again to get things working for all rules on 1.10 - #579

Open
kshyatt wants to merge 3 commits into
mainfrom
ksh/enz_10
Open

kshyatt wants to merge 3 commits into
mainfrom
ksh/enz_10

Conversation

@kshyatt

@kshyatt kshyatt commented Oct 14, 2026

Copy link
Copy Markdown
Member

It might be worth changing the copy=true to depend on whether Ap really will alias A in permute. For other cases I'd like to get rid of these version checks and make sure things really do work on all versions we support.

@kshyatt
kshyatt marked this pull request as ready for review October 14, 2026 16:50
Ap = $transform(A.val, p.val)
# without copy=true, this may just alias A if
# the permutation is an identity or the space
# is Trivial and has_shared_permute is true

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would it help if we instead try to permute the A_cache, which is fine to alias? And if it isn't available it's probably fine to alias A?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I'm not sure about that, because we only form Acache if A is overwritten downstream after this call. We could however permute Acache if we widen the check to form it in the first place.

@codecov

codecov Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
ext/TensorKitEnzymeExt/indexmanipulations.jl 82.40% <100.00%> (+82.40%) ⬆️

... and 14 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

This branch has not been deployed

No deployments
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