Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1644:e213bd857f3f feature/grids/manifolds
Add some todos and tbds
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Wed, 26 Jun 2024 11:06:32 +0200 |
parents | d4a6f9effcdd |
children | 8250cf5a3ce9 |
comparison
equal
deleted
inserted
replaced
1633:35f8e1adb010 | 1644:e213bd857f3f |
---|---|
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 | 130 |
131 equidistant_grid(hb::HyperBox, dims::Vararg{Int}) = equidistant_grid(hb.a, hb.b, dims...) | 131 equidistant_grid(hb::HyperBox, dims::Vararg{Int}) = equidistant_grid(hb.a, hb.b, dims...) |
132 # TODO: One dimensional grids shouldn't have vector eltype right?, Change here or in HyperBox? | |
132 | 133 |
133 function equidistant_grid(c::Chart, dims::Vararg{Int}) | 134 function equidistant_grid(c::Chart, dims::Vararg{Int}) |
134 lg = equidistant_grid(parameterspace(c), dims...) | 135 lg = equidistant_grid(parameterspace(c), dims...) |
135 return MappedGrid( | 136 return MappedGrid( |
136 lg, | 137 lg, |