Skip to content

Fix block setindex! on Mat: wrong array rank, and row-major values - #271

Merged
filoferra merged 1 commit into
JuliaParallel:v0.5from
filoferra:fix-block-setindex
Sep 18, 2026
Merged

filoferra merged 1 commit into
JuliaParallel:v0.5from
filoferra:fix-block-setindex

Conversation

@filoferra

Copy link
Copy Markdown
Collaborator

Issue with A[rows, cols] = block: the values array stayed two-dimensional while MatSetValues takes a Vector, so every call raised a MethodError.

The block is transposed first. A block whose shape disagrees with the indices now throws DimensionMismatch instead of reading past the end of the array.

Closes #248.

@filoferra
filoferra merged commit 4bc3019 into JuliaParallel:v0.5 Sep 18, 2026
5 checks passed
@filoferra
filoferra deleted the fix-block-setindex branch September 18, 2026 13:49
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