Skip to content

Conversation

@chrisvittal
Copy link
Collaborator

BlockMatrix IR is a little wierd right now. We often try to treat matricies with a single row/column as a vector. This leads to a lot of additional complexity for little benefit. As as start to simplifying this, always use [1, 0] as the index expression to BlockMatrixBroadcast in transpose.

Security Assessment

  • This change cannot impact the Hail Batch instance as deployed by Broad Institute in GCP

BlockMatrix IR is a little wierd right now. We often try to treat
matricies with a single row/column as a vector. This leads to a lot of
additional complexity for little benefit. As as start to simplifying
this, always use `[1, 0]` as the index expression to
BlockMatrixBroadcast in transpose.
@chrisvittal chrisvittal self-assigned this Oct 15, 2025
@chrisvittal
Copy link
Collaborator Author

Related to #15140 since in the vector case, we would allow broadcasts of row vectors as col vectors, and so, in the sparse case, defined block calculations would still be wrong.

Copy link
Member

@ehigham ehigham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

simpler

@hail-ci-robot hail-ci-robot merged commit 8e0daf6 into hail-is:main Nov 5, 2025
2 checks passed
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.

4 participants