From 002afda81a9569e2dfa268efb87d1ebd2e2c9ada Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 28 Oct 2025 16:02:46 +0100 Subject: Cleaning up examples --- lib/c++/descriptor.hpp | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to 'lib/c++') diff --git a/lib/c++/descriptor.hpp b/lib/c++/descriptor.hpp index e81738e..18ea440 100644 --- a/lib/c++/descriptor.hpp +++ b/lib/c++/descriptor.hpp @@ -164,6 +164,7 @@ public: static constexpr typename saw::native_data_type::type inv_cs2 = 3.0; static constexpr typename saw::native_data_type::type cs2 = 1./3.; }; + /* template class df_info> { @@ -177,16 +178,36 @@ public: { 0, 0, 0}, {-1, 0, 0}, { 1, 0, 0}, - { 0,-1, 0}, + // Expand into 2D + { 0, -1, 0}, + {-1, -1, 0}, + { 1, -1, 0}, { 0, 1, 0}, - {-1,-1, 0}, - { 1, 1, 0}, {-1, 1, 0}, - { 1,-1, 0} + { 1, 1, 0}, + // Expand into 3D + { 0, 0, -1}, + {-1, 0, -1}, + { 1, 0, -1}, + { 0, -1, -1}, + {-1, -1, -1}, + { 1, -1, -1}, + { 0, 1, -1}, + {-1, 1, -1}, + { 1, 1, -1}, + { 0, 0, 1}, + {-1, 0, 1}, + { 1, 0, 1}, + { 0, -1, 1}, + {-1, -1, 1}, + { 1, -1, 1}, + { 0, 1, 1}, + {-1, 1, 1}, + { 1, 1, 1} }}; static constexpr std::array::type,Q> weights = { - 4./9., + 8./27., 1./9., 1./9., 1./9., -- cgit v1.2.3