Skip to content

fix: special case pullbacks for fully truncated decompositions#233

Merged
Jutho merged 5 commits into
mainfrom
ld-pullbackfix
May 19, 2026
Merged

fix: special case pullbacks for fully truncated decompositions#233
Jutho merged 5 commits into
mainfrom
ld-pullbackfix

Conversation

@lkdvos
Copy link
Copy Markdown
Member

@lkdvos lkdvos commented May 18, 2026

Brought up by @leburgel, the norm(Base.broadcasted(...), Inf) ends up calling zero(eltype(bc)) on the broadcasted expression, and when eltype(bc) = Any this ends up throwing.
The easiest way around this is to simply catch the "empty" case in the pullbacks themselves, which I think I've now implemented correctly but it might be good to have another look at this.

@lkdvos lkdvos requested a review from Jutho May 18, 2026 20:41
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/pullbacks/eig.jl 92.72% <100.00%> (+0.13%) ⬆️
src/pullbacks/eigh.jl 86.13% <100.00%> (+0.28%) ⬆️
src/pullbacks/svd.jl 92.78% <100.00%> (+0.07%) ⬆️
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread src/pullbacks/eig.jl Outdated
Comment thread src/pullbacks/eig.jl Outdated
Comment thread src/pullbacks/eigh.jl Outdated
Comment thread src/pullbacks/eigh.jl Outdated
Co-authored-by: Jutho <Jutho@users.noreply.github.com>
@lkdvos lkdvos requested a review from kshyatt May 19, 2026 19:48
@Jutho Jutho merged commit 5677370 into main May 19, 2026
34 of 36 checks passed
@Jutho Jutho deleted the ld-pullbackfix branch May 19, 2026 20:37
@lkdvos lkdvos mentioned this pull request May 20, 2026
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