diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-17 18:29:22 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-02-17 18:29:22 +0100 |
| commit | dcee24278ed28d21cd3addffeeb8e5f9f7248602 (patch) | |
| tree | d590ede2996f04f69e2c4521019ae5b1bedd05df /lib/core/c++/descriptor.hpp | |
| parent | bb90083ca62483a1cf0e1b72dfb96e05701035ef (diff) | |
| download | libs-lbm-dcee24278ed28d21cd3addffeeb8e5f9f7248602.tar.gz | |
Diffstat (limited to 'lib/core/c++/descriptor.hpp')
| -rw-r--r-- | lib/core/c++/descriptor.hpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lib/core/c++/descriptor.hpp b/lib/core/c++/descriptor.hpp index 9cc2591..e38daee 100644 --- a/lib/core/c++/descriptor.hpp +++ b/lib/core/c++/descriptor.hpp @@ -180,6 +180,7 @@ public: static constexpr std::array<std::array<int32_t, D>, Q> directions = {{ { 0, 0, 0}, // 0 + // Into 1D {-1, 0, 0}, // 1 { 1, 0, 0}, // 2 // Expand into 2D @@ -212,14 +213,17 @@ public: static constexpr std::array<typename saw::native_data_type<T>::type,Q> weights = { 8./27., - 1./9., - 1./9., - 1./9., + // 1D + 2./27., + 2./27., + // 2D + 2./27., 1./9., 1./36., 1./36., 1./36., 1./36., + // 3D 8./27., 1./9., 1./9., |
