Mercurial > repos > public > sbplib_julia
changeset 2044:b3268d0bd5bc
Fix warning on load for definition of IndexStyle
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Thu, 05 Feb 2026 22:32:54 +0100 |
| parents | 07315bc72b31 |
| children | 8ee4b491c237 3edcf447298d 2f23d1ef6e1c |
| files | src/Grids/grid.jl |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
diff -r 07315bc72b31 -r b3268d0bd5bc src/Grids/grid.jl --- a/src/Grids/grid.jl Thu Feb 05 22:20:55 2026 +0100 +++ b/src/Grids/grid.jl Thu Feb 05 22:32:54 2026 +0100 @@ -80,7 +80,7 @@ Base.size(cv::ArrayComponentView) = size(cv.v) Base.getindex(cv::ArrayComponentView, i::Int) = cv.v[i][cv.component_index...] Base.getindex(cv::ArrayComponentView, I::Vararg{Int}) = cv.v[I...][cv.component_index...] -IndexStyle(ACT::Type{ArrayComponentView}) = IndexStyle(_array_type(ACT)) +Base.IndexStyle(ACT::Type{ArrayComponentView}) = IndexStyle(_array_type(ACT)) # TODO: Implement `setindex!`? # TODO: Implement a more general ComponentView that can handle non-AbstractArrays.
