diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-16 17:23:34 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-07-16 17:23:34 +0200 |
| commit | 879188f7c55b4f8383002b6bf09ef32dd592ab90 (patch) | |
| tree | 32e8e1c4816337fa6457f30c51ddf996e888aeb0 /modules/sycl/c++/data.hpp | |
| parent | 91f75c895fb2c344805ddcb91439b93bba0293c4 (diff) | |
| parent | bd9f266756849a7381d7a4ff575d5f1ccc6e28bb (diff) | |
| download | libs-lbm-879188f7c55b4f8383002b6bf09ef32dd592ab90.tar.gz | |
Merge branch 'dev'
Diffstat (limited to 'modules/sycl/c++/data.hpp')
| -rw-r--r-- | modules/sycl/c++/data.hpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/sycl/c++/data.hpp b/modules/sycl/c++/data.hpp index 9f43848..ec0fccf 100644 --- a/modules/sycl/c++/data.hpp +++ b/modules/sycl/c++/data.hpp @@ -103,6 +103,10 @@ public: return saw::data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>>{{Dims...}}; } + static constexpr data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>> meta() { + return saw::data<schema::FixedArray<schema::UInt64, sizeof...(Dims)>>{{Dims...}}; + } + constexpr data<Sch,Encode>& at(const data<schema::FixedArray<schema::UInt64,sizeof...(Dims)>>& index){ return values_[kel::lbm::flatten_index<schema::UInt64,sizeof...(Dims)>::apply(index,get_dims()).get()]; } |
