Skip to content

Route concatenation and zero! through TensorAlgebra#191

Merged
mtfishman merged 2 commits into
mainfrom
mf/concatenate-to-tensoralgebra
Jul 14, 2026
Merged

Route concatenation and zero! through TensorAlgebra#191
mtfishman merged 2 commits into
mainfrom
mf/concatenate-to-tensoralgebra

Conversation

@mtfishman

@mtfishman mtfishman commented Jul 13, 2026

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.

## 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 77.58%. Comparing base (2a43ec7) to head (b70bbaa).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #191      +/-   ##
==========================================
+ Coverage   77.45%   77.58%   +0.12%     
==========================================
  Files          12       11       -1     
  Lines         896      803      -93     
==========================================
- Hits          694      623      -71     
+ Misses        202      180      -22     
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.

TensorAlgebra 0.17.5 is registered, so resolve it from the registry.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mtfishman mtfishman changed the title [WIP] Route concatenation and zero! through TensorAlgebra Route concatenation and zero! through TensorAlgebra Jul 14, 2026
@mtfishman mtfishman marked this pull request as ready for review July 14, 2026 18:07
@mtfishman mtfishman enabled auto-merge (squash) July 14, 2026 18:07
@mtfishman mtfishman merged commit bb1da25 into main Jul 14, 2026
25 of 28 checks passed
@mtfishman mtfishman deleted the mf/concatenate-to-tensoralgebra branch July 14, 2026 18:20
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