diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-07-11 14:14:36 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-07-11 14:14:36 +0200 |
commit | 869974982752cd37e808283af629ea0bbb680393 (patch) | |
tree | 84bdb4c7079b09fa0ac215ad78922beb2221bc03 /c++/iterator.hpp | |
parent | 96123e1331eabbfb0f5104857035df42096c7548 (diff) |
Writing was flipped on non square, cubic domains
Diffstat (limited to 'c++/iterator.hpp')
-rw-r--r-- | c++/iterator.hpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/c++/iterator.hpp b/c++/iterator.hpp index fcc50bc..78babff 100644 --- a/c++/iterator.hpp +++ b/c++/iterator.hpp @@ -14,5 +14,19 @@ void iterate_over(Func&& func, const saw::data<sch::FixedArray<sch::UInt64,2u>>& } return; } +/* Ambiguous +template<typename Func> +void iterate_over(Func&& func, const saw::data<sch::FixedArray<sch::UInt64,3u>>& start, const saw::data<sch::FixedArray<sch::UInt64,3u>>& end, const saw::data<sch::FixedArray<sch::UInt64,3u>>& dist = {{{0u,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.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){ + for(saw::data<sch::UInt64> k{start.at({2u}) + dist.at({2u})}; (j+dist.at({2u})) < end.at({2u}); ++j){ + func({{k,j,i}}); + } + } + } + return; +} +*/ } } |