Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1565:c3425b4302b8 feature/grids/manifolds
Add equidistant_grid method for HyperBox
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Thu, 25 Apr 2024 13:21:12 +0200 |
| parents | 43aaf710463e |
| children | b9c7bab94241 |
comparison
equal
deleted
inserted
replaced
| 1564:35fe4375b35f | 1565:c3425b4302b8 |
|---|---|
| 125 throw(DomainError("side length must be postive")) | 125 throw(DomainError("side length must be postive")) |
| 126 end | 126 end |
| 127 return EquidistantGrid(range(limit_lower, limit_upper, length=size)) # TBD: Should it use LinRange instead? | 127 return EquidistantGrid(range(limit_lower, limit_upper, length=size)) # TBD: Should it use LinRange instead? |
| 128 end | 128 end |
| 129 | 129 |
| 130 | |
| 131 equidistant_grid(hb::HyperBox, dims::Vararg{Int}) = equidistant_grid(hb.a, hb.b, dims...) | |
| 132 | |
| 133 | |
| 130 CartesianBoundary{D,BID} = TensorGridBoundary{D,BID} # TBD: What should we do about the naming of this boundary? | 134 CartesianBoundary{D,BID} = TensorGridBoundary{D,BID} # TBD: What should we do about the naming of this boundary? |
| 131 | 135 |
| 132 | 136 |
| 133 """ | 137 """ |
| 134 change_length(r::AbstractRange, n) | 138 change_length(r::AbstractRange, n) |
