Mercurial > repos > public > sbplib_julia
diff src/Grids/grid.jl @ 1635:b62770cec7d0 update/julia_1.10.3
Merge default
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 25 Jun 2024 15:32:19 +0200 |
parents | 888e4092e2ed |
children | 5f348cc5598e b02917bcd7d5 |
line wrap: on
line diff
--- a/src/Grids/grid.jl Sat May 25 16:02:55 2024 -0700 +++ b/src/Grids/grid.jl Tue Jun 25 15:32:19 2024 +0200 @@ -74,7 +74,7 @@ end end -Base.size(cv) = size(cv.v) +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(::Type{<:ArrayComponentView{<:Any,<:Any,AT}}) where AT = IndexStyle(AT)