From 0e0da21fdadb2b924d42bf21ac6c881cf1abcf63 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 14 Aug 2025 15:57:12 +0200 Subject: End of day, attempts at utilization --- c++/util.hpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'c++/util.hpp') diff --git a/c++/util.hpp b/c++/util.hpp index a215cc1..1a54541 100644 --- a/c++/util.hpp +++ b/c++/util.hpp @@ -2,11 +2,22 @@ namespace kel { namespace lbm { -template +template struct is_neighbour { template - static bool operator()(saw::data& latt, saw::data& index, saw::data range) { + static bool operator()(saw::data& latt, saw::data& index) { using dfi = df_info; + + if(index.at({0u}).get() == 0u or index.at({1u}).get() == 0u){ + return false; + } + + for(saw::data k{0u}; k.get() < Descriptor::Q; ++k){ + // TODO + saw::data> + } + + auto& cell = latt(index); } }; } -- cgit v1.2.3