Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 1516:8d64f8981bb0 feature/grids/componentview
Remove comments and add todo
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Thu, 21 Mar 2024 07:42:19 +0100 |
| parents | 6309ca375dcd |
| children | 7ee7df7d9b61 |
comparison
equal
deleted
inserted
replaced
| 1515:b2eaa1ad19c8 | 1516:8d64f8981bb0 |
|---|---|
| 65 # the time for which this won't be a problem. I say we cross that bridge when | 65 # the time for which this won't be a problem. I say we cross that bridge when |
| 66 # there is an obvoius need. (Just slapping a @view on there seems to be | 66 # there is an obvoius need. (Just slapping a @view on there seems to be |
| 67 # changing the return tyoe to a 0-dimensional array. That's where i gave up.) | 67 # changing the return tyoe to a 0-dimensional array. That's where i gave up.) |
| 68 IndexStyle(::Type{<:ArrayComponentView{<:Any,<:Any,AT}}) where AT = IndexStyle(AT) | 68 IndexStyle(::Type{<:ArrayComponentView{<:Any,<:Any,AT}}) where AT = IndexStyle(AT) |
| 69 | 69 |
| 70 # TODO: Implement the remaining optional methods from the array interface | 70 # TODO: Implement setindex!? |
| 71 # setindex!(A, v, i::Int) | |
| 72 # setindex!(A, v, I::Vararg{Int, N}) | |
| 73 # iterate | |
| 74 # length(A) | |
| 75 # similar(A) | |
| 76 # similar(A, ::Type{S}) | |
| 77 # similar(A, dims::Dims) | |
| 78 # similar(A, ::Type{S}, dims::Dims) | |
| 79 # # Non-traditional indices | |
| 80 # axes(A) | |
| 81 # similar(A, ::Type{S}, inds) | |
| 82 # similar(T::Union{Type,Function}, inds) | |
| 83 | |
| 84 # TODO: Implement a more general ComponentView that can handle non-AbstractArrays. | 71 # TODO: Implement a more general ComponentView that can handle non-AbstractArrays. |
| 85 | 72 |
| 86 """ | 73 """ |
| 87 refine(g::Grid, r) | 74 refine(g::Grid, r) |
| 88 | 75 |
