summaryrefslogtreecommitdiff
path: root/c++/descriptor.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-09-09 10:57:25 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-09-09 10:57:25 +0200
commit3fa7dcb5684504dc99d14d2dc003876151636834 (patch)
tree8f2dee12c94c47bd218a4ce0e4770fe576fd7c08 /c++/descriptor.hpp
parent1f993006305952f4cafddd08267731877e808bba (diff)
Removing warnings
Diffstat (limited to 'c++/descriptor.hpp')
-rw-r--r--c++/descriptor.hpp49
1 files changed, 49 insertions, 0 deletions
diff --git a/c++/descriptor.hpp b/c++/descriptor.hpp
index 0d05a04..0c6707a 100644
--- a/c++/descriptor.hpp
+++ b/c++/descriptor.hpp
@@ -153,6 +153,55 @@ public:
static constexpr typename saw::native_data_type<T>::type inv_cs2 = 3.0;
static constexpr typename saw::native_data_type<T>::type cs2 = 1./3.;
};
+/*
+template<typename T>
+class df_info<T,sch::Descriptor<3, 27>> {
+public:
+ using Descriptor = sch::Descriptor<3,27>;
+
+ static constexpr uint64_t D = 3u;
+ static constexpr uint64_t Q = 27u;
+
+ static constexpr std::array<std::array<int32_t, D>, Q> directions = {{
+ { 0, 0, 0},
+ {-1, 0, 0},
+ { 1, 0, 0},
+ { 0,-1, 0},
+ { 0, 1, 0},
+ {-1,-1, 0},
+ { 1, 1, 0},
+ {-1, 1, 0},
+ { 1,-1, 0}
+ }};
+
+ static constexpr std::array<typename saw::native_data_type<T>::type,Q> weights = {
+ 4./9.,
+ 1./9.,
+ 1./9.,
+ 1./9.,
+ 1./9.,
+ 1./36.,
+ 1./36.,
+ 1./36.,
+ 1./36.
+ };
+
+ static constexpr std::array<uint64_t,Q> opposite_index = {
+ 0,
+ 2,
+ 1,
+ 4,
+ 3,
+ 6,
+ 5,
+ 8,
+ 7
+ };
+
+ static constexpr typename saw::native_data_type<T>::type inv_cs2 = 3.0;
+ static constexpr typename saw::native_data_type<T>::type cs2 = 1./3.;
+};
+*/
template<typename Schema>
class cell_schema_builder {