Mercurial > repos > public > sbplib_julia
comparison src/Grids/grid.jl @ 1646:5f348cc5598e feature/grids/min_spacing
Add min_spacing function for grids
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 11:30:38 +0200 |
parents | 888e4092e2ed |
children | 3714a391545a 51f0c5f895fb |
comparison
equal
deleted
inserted
replaced
1643:e551fe1fff14 | 1646:5f348cc5598e |
---|---|
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 |