Skip to content

[WIP] Matrix factorizations, *, and one! for AbelianGradedMatrix#208

Draft
mtfishman wants to merge 1 commit into
mainfrom
mf/nextgen-followups-round1
Draft

[WIP] Matrix factorizations, *, and one! for AbelianGradedMatrix#208
mtfishman wants to merge 1 commit into
mainfrom
mf/nextgen-followups-round1

Conversation

@mtfishman

Copy link
Copy Markdown
Member

Summary

Fill in the matrix-level linear algebra for a bare AbelianGradedMatrix by routing through the matricizing TensorAlgebra factorizations.

The MatrixAlgebraKit factorizations (svd_compact, svd_full, svd_vals, qr_compact, qr_full, lq_compact, lq_full, eig_full, eig_vals, eigh_full, eigh_vals, left_polar, right_polar, project_hermitian) now accept a bare AbelianGradedMatrix: each matricizes to a FusedGradedMatrix, runs the block factorization, and unmatricizes the factors back. Only the functions with an identically-named TensorAlgebra perm-form are covered here.

Base.:* on two AbelianGradedMatrixes is defined in terms of contract, which matricizes internally.

MatrixAlgebraKit.one! fills an AbelianGradedMatrix with the graded identity in place, delegating to TensorAlgebra.one! (added in ITensor/TensorAlgebra.jl#205).

TODO

Route the matrix-level linear algebra for a bare `AbelianGradedMatrix` through
the matricizing `TensorAlgebra` factorizations: the `MatrixAlgebraKit`
factorization family, `Base.:*`, and in-place `one!`.
@codecov

codecov Bot commented Jul 8, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 76.08%. Comparing base (53f9ab2) to head (44b97de).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #208      +/-   ##
==========================================
- Coverage   80.37%   76.08%   -4.30%     
==========================================
  Files          24       23       -1     
  Lines        1957     1961       +4     
==========================================
- Hits         1573     1492      -81     
- Misses        384      469      +85     
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