From ee13c90edae097679002adcae4dd726dd3f31164 Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Thu, 20 Mar 2025 16:50:35 +0100 Subject: This might work? --- c++/descriptor.h | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'c++/descriptor.h') diff --git a/c++/descriptor.h b/c++/descriptor.h index 564a705..fad9bf2 100644 --- a/c++/descriptor.h +++ b/c++/descriptor.h @@ -40,7 +40,11 @@ class df_info{}; template class df_info> { - static constexpr std::array, 5> directions = {{ +public: + static constexpr uint64_t D = 2u; + static constexpr uint64_t Q = 5u; + + static constexpr std::array, Q> directions = {{ { 0, 0}, {-1, 0}, { 0,-1}, @@ -48,7 +52,7 @@ class df_info> { { 1, 0} }}; - static constexpr std::array::type,5> weights = { + static constexpr std::array::type,Q> weights = { 1./3., 1./6., 1./6., @@ -56,6 +60,14 @@ class df_info> { 1./6. }; + static constexpr std::array opposite_index = { + 0, + 3, + 4, + 1, + 2 + }; + static constexpr typename saw::native_data_type::type cs2 = 1./3.; }; } -- cgit v1.2.3