Mercurial > repos > public > sbplib_julia
comparison src/Grids/equidistant_grid.jl @ 1513:d7bc11053951
Fix spelling mistakes
| author | Jonatan Werpers <jonatan@werpers.com> |
|---|---|
| date | Thu, 21 Mar 2024 15:36:52 +0100 |
| parents | 37cf9f79caa4 |
| children | 4df668d00d03 43aaf710463e |
comparison
equal
deleted
inserted
replaced
| 1499:8ef207e4bc87 | 1513:d7bc11053951 |
|---|---|
| 101 The number of equispaced points in each coordinate direction are given | 101 The number of equispaced points in each coordinate direction are given |
| 102 by the tuple `size`. | 102 by the tuple `size`. |
| 103 | 103 |
| 104 Note: If `limit_lower` and `limit_upper` are integers and `size` would allow a | 104 Note: If `limit_lower` and `limit_upper` are integers and `size` would allow a |
| 105 completely integer grid, `equidistant_grid` will still return a floating point | 105 completely integer grid, `equidistant_grid` will still return a floating point |
| 106 grid. This simlifies the implementation and avoids certain surprise | 106 grid. This simplifies the implementation and avoids certain surprise |
| 107 behaviours. | 107 behaviors. |
| 108 """ | 108 """ |
| 109 function equidistant_grid(size::Dims, limit_lower, limit_upper) | 109 function equidistant_grid(size::Dims, limit_lower, limit_upper) |
| 110 gs = map(equidistant_grid, size, limit_lower, limit_upper) | 110 gs = map(equidistant_grid, size, limit_lower, limit_upper) |
| 111 return TensorGrid(gs...) | 111 return TensorGrid(gs...) |
| 112 end | 112 end |
