Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 1671:791d0f3f289a
Merge feature/grids/min_spacing
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Sat, 29 Jun 2024 17:06:27 +0200 |
parents | 5f348cc5598e |
children | 3714a391545a 51f0c5f895fb |
comparison
equal
deleted
inserted
replaced
1668:bcc2be934326 | 1671:791d0f3f289a |
---|---|
80 IndexStyle(::Type{<:ArrayComponentView{<:Any,<:Any,AT}}) where AT = IndexStyle(AT) | 80 IndexStyle(::Type{<:ArrayComponentView{<:Any,<:Any,AT}}) where AT = IndexStyle(AT) |
81 | 81 |
82 # TODO: Implement `setindex!`? | 82 # TODO: Implement `setindex!`? |
83 # TODO: Implement a more general ComponentView that can handle non-AbstractArrays. | 83 # TODO: Implement a more general ComponentView that can handle non-AbstractArrays. |
84 | 84 |
85 | |
86 """ | |
87 min_spacing(g::Grid) | |
88 | |
89 The smallest distance between any pair of grid points in `g`. | |
90 """ | |
91 function min_spacing end | |
92 | |
85 """ | 93 """ |
86 refine(g::Grid, r) | 94 refine(g::Grid, r) |
87 | 95 |
88 The grid where `g` is refined by the factor `r`. | 96 The grid where `g` is refined by the factor `r`. |
89 | 97 |