Skip to content

Add a sparse bipermutedimsopadd! for TensorAlgebra 0.14#186

Merged
mtfishman merged 3 commits into
mainfrom
mf/tensoralgebra-0.14
Jul 1, 2026
Merged

Add a sparse bipermutedimsopadd! for TensorAlgebra 0.14#186
mtfishman merged 3 commits into
mainfrom
mf/tensoralgebra-0.14

Conversation

@mtfishman

@mtfishman mtfishman commented Jun 30, 2026

Copy link
Copy Markdown
Member

Summary

Adds a bipermutedimsopadd! method for sparse destinations, so permutation and accumulation keep working after TensorAlgebra's bipermutedimsopadd! switched to a StridedView-based permute path that a sparse array cannot wrap (ITensor/TensorAlgebra.jl#194). The accumulation reuses TensorAlgebra's logic over a lazily permuted source.

mtfishman and others added 2 commits June 30, 2026 14:50
Adds a `bipermutedimsopadd!` method for sparse destinations, so permutation and accumulation keep working after TensorAlgebra's `bipermutedimsopadd!` switched to a `StridedView`-based permute path that a sparse array cannot wrap. The accumulation reuses TensorAlgebra's logic over a lazily permuted source.

Co-authored-by: Claude <noreply@anthropic.com>
`TensorAlgebra` is a weak dependency of SparseArraysBase, so Pkg rejects a `[sources]` entry for it in the root `Project.toml` (a source must reference a package in `[deps]` or `[extras]`). Move the branch pin to `test/Project.toml`, where `TensorAlgebra` is a regular test dependency and which is the only environment that needs the unreleased branch.
@codecov

codecov Bot commented Jun 30, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 69.23077% with 4 lines in your changes missing coverage. Please review.
✅ Project coverage is 77.45%. Comparing base (e8238f2) to head (89f2aa7).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...nsorAlgebraExt/SparseArraysBaseTensorAlgebraExt.jl 69.23% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #186      +/-   ##
==========================================
- Coverage   77.57%   77.45%   -0.13%     
==========================================
  Files          12       12              
  Lines         883      896      +13     
==========================================
+ Hits          685      694       +9     
- Misses        198      202       +4     
Flag Coverage Δ
docs 25.65% <0.00%> (-0.41%) ⬇️

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.

TensorAlgebra 0.14 is registered, so the `[compat]` bound resolves against the release and the branch pin is no longer needed.
@mtfishman mtfishman changed the title [WIP] Add a sparse bipermutedimsopadd! for TensorAlgebra 0.14 Add a sparse bipermutedimsopadd! for TensorAlgebra 0.14 Jul 1, 2026
@mtfishman mtfishman marked this pull request as ready for review July 1, 2026 02:41
@mtfishman mtfishman enabled auto-merge (squash) July 1, 2026 02:41
@mtfishman mtfishman merged commit 361cef2 into main Jul 1, 2026
24 of 28 checks passed
@mtfishman mtfishman deleted the mf/tensoralgebra-0.14 branch July 1, 2026 02:50
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