diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-07-04 14:33:54 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-07-04 14:33:54 +0200 |
commit | 96123e1331eabbfb0f5104857035df42096c7548 (patch) | |
tree | 2ba2d09a24effc5f2bbcbec9b920a43b1c2283ff /c++/iterator.hpp | |
parent | 1698e94edbfd90c178ca65a7d21679c390194e77 (diff) |
Improved geometry configuration setting
Diffstat (limited to 'c++/iterator.hpp')
-rw-r--r-- | c++/iterator.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/c++/iterator.hpp b/c++/iterator.hpp index 01163cf..fcc50bc 100644 --- a/c++/iterator.hpp +++ b/c++/iterator.hpp @@ -5,10 +5,10 @@ namespace kel { namespace lbm { template<typename Func> -void iterate_over(Func&& func, const saw::data<sch::FixedArray<sch::UInt64,2u>>& start, const saw::data<sch::FixedArray<sch::UInt64,2u>>& end, const saw::data<sch::UInt64>& dist = {0u}){ +void iterate_over(Func&& func, const saw::data<sch::FixedArray<sch::UInt64,2u>>& start, const saw::data<sch::FixedArray<sch::UInt64,2u>>& end, const saw::data<sch::FixedArray<sch::UInt64,2u>>& dist = {{{0u,0u}}}){ // static_assert(D == 2u, "Currently a lazy implementation for AND combinations of intervalls."); - for(saw::data<sch::UInt64> i{start.at({0u}) + dist}; (i+dist) < end.at({0u}); ++i){ - for(saw::data<sch::UInt64> j{start.at({0u}) + dist}; (j+dist) < end.at({1u}); ++j){ + for(saw::data<sch::UInt64> i{start.at({0u}) + dist.at({0u})}; (i+dist.at({0u})) < end.at({0u}); ++i){ + for(saw::data<sch::UInt64> j{start.at({1u}) + dist.at({1u})}; (j+dist.at({1u})) < end.at({1u}); ++j){ func({{i,j}}); } } |