Skip to content

Named-tensor contraction with a contraction algorithm and operand conjugation - #267

Merged
mtfishman merged 8 commits into
mainfrom
named-contraction-algorithm
Oct 2, 2026
Merged

mtfishman merged 8 commits into
mainfrom
named-contraction-algorithm

Conversation

@jack-dunham

@jack-dunham jack-dunham commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Named-tensor contraction can now select a TensorAlgebra contraction algorithm and conjugate an operand without copying it. mul! passes keyword arguments such as alg through to TensorAlgebra, and the new mulopadd! accumulates a scaled product with either operand conjugated.

jack-dunham and others added 3 commits September 30, 2026 10:56
…mul!`

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Operator and lazy tensors keep their wrappers through `*`; with the
`AbstractNamedTensor` method, `contract` returned a plain `NamedTensor`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 78.00%. Comparing base (64f090d) to head (1f496f3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #267      +/-   ##
==========================================
+ Coverage   77.69%   78.00%   +0.31%     
==========================================
  Files          30       30              
  Lines        1820     1823       +3     
==========================================
+ Hits         1414     1422       +8     
+ Misses        406      401       -5     
Flag Coverage Δ
docs 25.56% <0.00%> (-0.05%) ⬇️

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.

Comment thread src/tensoralgebra.jl Outdated
Named-tensor contraction uses matrix-operation names: `mul!` (3- and
5-argument, with `alg`) and the new `mulopadd!`. The `TensorAlgebra.contract`,
`contract!` and `contractopadd!` methods for named tensors are removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comment thread src/tensoralgebra.jl Outdated
@mtfishman
mtfishman enabled auto-merge (squash) October 2, 2026 17:22
@mtfishman

Copy link
Copy Markdown
Member

Thanks!

The public declaration added mulopadd!, so the expected list needs it too.
Only Julia 1.11 and newer compares public names, which is why the lts jobs
passed.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mtfishman mtfishman changed the title Named-tensor contraction with a contraction algorithm and operand conjugation Named-tensor contraction with a contraction algorithm and operand conjugation Oct 2, 2026
@mtfishman
mtfishman merged commit e4a3bd4 into main Oct 2, 2026
18 checks passed
@mtfishman
mtfishman deleted the named-contraction-algorithm branch October 2, 2026 18:13
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.

2 participants