44 using R =
decltype(f((offset)));
46 boost::multi_array<R, 3> res(size);
48 auto const end = offset +
Vector<T, 3>{grid_spacing[0] * size[0],
49 grid_spacing[1] * size[1],
50 grid_spacing[2] * size[2]};
auto raster(Vector< T, 3 > const &offset, Vector< T, 3 > const &grid_spacing, Vector3i size, F f)
Raster a function over a regular 3d grid.