comparison src/Grids/equidistant_grid.jl @ 1518:0cd6cf62af93 feature/grids/componentview

Merge refactor/component_type
author Jonatan Werpers <jonatan@werpers.com>
date Thu, 21 Mar 2024 15:51:29 +0100
parents d7bc11053951
children 4df668d00d03 43aaf710463e
comparison
equal deleted inserted replaced
1517:7ee7df7d9b61 1518:0cd6cf62af93
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