Skip to content

2-element size in allocating structured broadcast destination #1329

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 3, 2025

Conversation

jishnub
Copy link
Member

@jishnub jishnub commented May 1, 2025

Currently, we use size(bc)[1] to construct the destination in structured broadcasting, where we assume that each of the destination types is square. We pass n = size(bc)[1] as an argument to the function that allocates the destination, and use (n, n) as the destination size where a 2D matrix needs to be allocated. However, a square destination is not necessary in general, as an UpperHessenberg currently supports rectangular parents. We may instead pass size(bc) to the function, and use only the first element when we know the destination to be square from its type. This allows for rectangular destinations wherever necessary.

@jishnub jishnub changed the title Use matrix size in structured broadcast 2-element size in allocating structured broadcast destination May 1, 2025
Copy link

codecov bot commented May 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 93.74%. Comparing base (9d139f5) to head (9b4259b).
Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1329   +/-   ##
=======================================
  Coverage   93.73%   93.74%           
=======================================
  Files          34       34           
  Lines       15748    15751    +3     
=======================================
+ Hits        14762    14765    +3     
  Misses        986      986           

☔ View full report in Codecov by Sentry.
📢 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.

@jishnub jishnub requested a review from N5N3 May 3, 2025 05:39
@N5N3
Copy link
Member

N5N3 commented May 3, 2025

IIUC we have no struct preserving broadcast support for UpperHessenberg?
Sorry, didn't see #1325.

@N5N3 N5N3 merged commit c9b6456 into master May 3, 2025
4 checks passed
@N5N3 N5N3 deleted the jishnub/structured_bcast_size branch May 3, 2025 06:08
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