Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 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 | 1fa47cacd3dd |
| children | 491887181b8c |
comparison
equal
deleted
inserted
replaced
| 2041:07315bc72b31 | 2044:b3268d0bd5bc |
|---|---|
| 78 _array_type(::Type{ArrayComponentView{CT,T,D,AT,IT}}) where {CT,T,D,AT,IT} = AT | 78 _array_type(::Type{ArrayComponentView{CT,T,D,AT,IT}}) where {CT,T,D,AT,IT} = AT |
| 79 | 79 |
| 80 Base.size(cv::ArrayComponentView) = size(cv.v) | 80 Base.size(cv::ArrayComponentView) = size(cv.v) |
| 81 Base.getindex(cv::ArrayComponentView, i::Int) = cv.v[i][cv.component_index...] | 81 Base.getindex(cv::ArrayComponentView, i::Int) = cv.v[i][cv.component_index...] |
| 82 Base.getindex(cv::ArrayComponentView, I::Vararg{Int}) = cv.v[I...][cv.component_index...] | 82 Base.getindex(cv::ArrayComponentView, I::Vararg{Int}) = cv.v[I...][cv.component_index...] |
| 83 IndexStyle(ACT::Type{ArrayComponentView}) = IndexStyle(_array_type(ACT)) | 83 Base.IndexStyle(ACT::Type{ArrayComponentView}) = IndexStyle(_array_type(ACT)) |
| 84 | 84 |
| 85 # TODO: Implement `setindex!`? | 85 # TODO: Implement `setindex!`? |
| 86 # TODO: Implement a more general ComponentView that can handle non-AbstractArrays. | 86 # TODO: Implement a more general ComponentView that can handle non-AbstractArrays. |
| 87 | 87 |
| 88 | 88 |
