Skip to content

Derive size(::RegularChunks, d) from size - #334

Merged
meggart merged 1 commit into
JuliaIO:mainfrom
Beforerr:chunks-size
Oct 7, 2026
Merged

meggart merged 1 commit into
JuliaIO:mainfrom
Beforerr:chunks-size

Conversation

@Beforerr

@Beforerr Beforerr commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

The two-argument method ignored d, so size(r, 2) returned the number of chunks rather than 1. Its untyped d also made it a candidate for any size(::AbstractVecOrMat, ::Int) call that is not fully inferred, invalidating such compiled code when DiskArrays loads.

The two-argument method ignored `d`, so `size(r, 2)` returned the number
of chunks rather than 1. Its untyped `d` also made it a candidate for any
`size(::AbstractVecOrMat, ::Int)` call that is not fully inferred,
invalidating such compiled code when DiskArrays loads.
@meggart
meggart merged commit e246795 into JuliaIO:main Oct 7, 2026
12 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.

2 participants