From 869974982752cd37e808283af629ea0bbb680393 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 11 Jul 2025 14:14:36 +0200 Subject: Writing was flipped on non square, cubic domains --- c++/iterator.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'c++/iterator.hpp') 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>& } return; } +/* Ambiguous +template +void iterate_over(Func&& func, const saw::data>& start, const saw::data>& end, const saw::data>& dist = {{{0u,0u,0u}}}){ + // static_assert(D == 2u, "Currently a lazy implementation for AND combinations of intervalls."); + for(saw::data i{start.at({0u}) + dist.at({0u})}; (i+dist.at({0u})) < end.at({0u}); ++i){ + for(saw::data j{start.at({1u}) + dist.at({1u})}; (j+dist.at({1u})) < end.at({1u}); ++j){ + for(saw::data k{start.at({2u}) + dist.at({2u})}; (j+dist.at({2u})) < end.at({2u}); ++j){ + func({{k,j,i}}); + } + } + } + return; +} +*/ } } -- cgit v1.2.3