Skip to content

Add a twist! interface with a no-op default for non-graded arrays - #240

Merged
mtfishman merged 1 commit into
mainfrom
mf/twist-interface
Oct 7, 2026
Merged

mtfishman merged 1 commit into
mainfrom
mf/twist-interface

Conversation

@mtfishman

Copy link
Copy Markdown
Member

Summary

Adds twist!(a, dims) as a TensorAlgebra interface verb with a no-op AbstractArray default, giving graded backends and named-tensor wrappers a shared twist! to extend. A plain array has no sector data and no braiding, so twisting it is the identity.

Adds `twist!(a, dims)` as a TensorAlgebra interface verb with a no-op `AbstractArray` default, giving graded backends and named-tensor wrappers a shared `twist!` to extend. A plain array has no sector data and no braiding, so twisting it is the identity.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.22%. Comparing base (be8355b) to head (1e23052).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #240      +/-   ##
==========================================
- Coverage   83.31%   83.22%   -0.09%     
==========================================
  Files          29       29              
  Lines         947      948       +1     
==========================================
  Hits          789      789              
- Misses        158      159       +1     
Flag Coverage Δ
docs 23.79% <0.00%> (-0.03%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

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

@mtfishman
mtfishman enabled auto-merge (squash) October 7, 2026 01:04
@mtfishman
mtfishman merged commit 783ebd9 into main Oct 7, 2026
20 of 21 checks passed
@mtfishman
mtfishman deleted the mf/twist-interface branch October 7, 2026 01:25
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