comparison src/Grids/grid.jl @ 2045:8ee4b491c237 bugfix/zero_dim_grid_boundary_ops

Merge default
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 05 Feb 2026 22:33:13 +0100
parents b3268d0bd5bc
children 491887181b8c
comparison
equal deleted inserted replaced
2043:0e93fc7fb2e2 2045:8ee4b491c237
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