Skip to content

Conversation

@mtfishman
Copy link
Member

This adds an alternative blocked permutation interface contract(randn(2, 2, 2), (2,), (3, 1), randn(2, 2, 2), (2, 1), (3,)), which is now the preferred overload interface (for the analogous interface at the contractadd! level). The main reason is to let users call and overload those functions without special blocked permutation constructors and types (i.e. so users don't have to call contract(randn(2, 2, 2), permmortar(((2,), (3, 1))), randn(2, 2, 2), permmortar(((2, 1), (3,)))), which is equivalent to the above call). Blocked permutation versions are still available but are mostly meant to be internal.

@codecov
Copy link

codecov bot commented Feb 3, 2026

Codecov Report

❌ Patch coverage is 72.48322% with 41 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.56%. Comparing base (2efd54e) to head (e231b30).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rOperationsExt/TensorAlgebraTensorOperationsExt.jl 35.48% 20 Missing ⚠️
src/contract/contract.jl 42.30% 15 Missing ⚠️
ext/TensorAlgebraBlockArraysExt/blockedtuple.jl 86.66% 2 Missing ⚠️
src/blockedtuple.jl 93.10% 2 Missing ⚠️
src/contract/contractalgorithm.jl 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #120      +/-   ##
==========================================
- Coverage   73.48%   72.56%   -0.92%     
==========================================
  Files          22       24       +2     
  Lines        1090     1152      +62     
==========================================
+ Hits          801      836      +35     
- Misses        289      316      +27     
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 Sentry.
📢 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 merged commit 9e9fd3e into main Feb 3, 2026
19 of 21 checks passed
@mtfishman mtfishman deleted the mf/biperm-interface branch February 3, 2026 22:18
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