Skip to content

Make twist! a no-op on non-graded arrays - #217

Open
mtfishman wants to merge 1 commit into
mainfrom
mf/twist-noop-dense
Open

Make twist! a no-op on non-graded arrays#217
mtfishman wants to merge 1 commit into
mainfrom
mf/twist-noop-dense

Conversation

@mtfishman

Copy link
Copy Markdown
Member

Summary

Adds a fallback twist!(a::AbstractArray, dims) = a so twist! is total over array types. A non-graded array carries no sector data, so there is no braiding and the twist is the identity. This covers the dense and Diagonal blocks that factorizations of unsymmetric arrays produce, which previously hit a MethodError because twist! was defined only for graded arrays.

Adds a fallback twist!(a::AbstractArray, dims) = a so twist! is total over array types. A non-graded array carries no sector data, so there is no braiding and the twist is the identity. This covers the dense and Diagonal blocks that factorizations of unsymmetric arrays produce, which previously hit a MethodError because twist! was defined only for graded arrays.
@codecov

codecov Bot commented Jul 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.78%. Comparing base (d11f16b) to head (b5867e8).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #217   +/-   ##
=======================================
  Coverage   84.78%   84.78%           
=======================================
  Files          28       28           
  Lines        2083     2084    +1     
=======================================
+ Hits         1766     1767    +1     
  Misses        317      317           
Flag Coverage Δ
docs 0.00% <0.00%> (ø)

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.

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