Skip to content

[WIP] Route concatenation and zero! through TensorAlgebra#191

Draft
mtfishman wants to merge 1 commit into
mainfrom
mf/concatenate-to-tensoralgebra
Draft

[WIP] Route concatenation and zero! through TensorAlgebra#191
mtfishman wants to merge 1 commit into
mainfrom
mf/concatenate-to-tensoralgebra

Conversation

@mtfishman

Copy link
Copy Markdown
Member

Summary

Drops the vendored Concatenate interface now that it lives in TensorAlgebra (ITensor/TensorAlgebra.jl#210), and extends that interface for sparse storage there instead. zero! is routed through TensorAlgebra the same way: the sparse array types extend TensorAlgebra.zero! to empty their storage in place rather than filling it with zeros.

TODO

  • Remove the TensorAlgebra [sources] pin and confirm the compat floor once TensorAlgebra 0.17.5 registers.

## Summary

`concatenate`/`cat` and `zero!` now come from TensorAlgebra rather than being owned locally. The vendored `Concatenate` module is removed, and `Base._cat` on sparse arrays routes through `TensorAlgebra.concatenate`. The sparse `zero!` methods extend `TensorAlgebra.zero!`, and SparseArraysBase's identical dense fallback is dropped in favor of TensorAlgebra's. TensorAlgebra becomes a regular dependency, so the `SparseArraysBaseTensorAlgebraExt` extension is folded into `src/tensoralgebra.jl`.

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

codecov Bot commented Jul 13, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 68.26%. Comparing base (2a43ec7) to head (a1815b4).

❗ There is a different number of reports uploaded between BASE (2a43ec7) and HEAD (a1815b4). Click for more details.

HEAD has 13 uploads less than BASE
Flag BASE (2a43ec7) HEAD (a1815b4)
docs 3 1
12 1
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #191      +/-   ##
==========================================
- Coverage   77.45%   68.26%   -9.20%     
==========================================
  Files          12       10       -2     
  Lines         896      753     -143     
==========================================
- Hits          694      514     -180     
- Misses        202      239      +37     
Flag Coverage Δ
docs 28.87% <50.00%> (+3.22%) ⬆️

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