summaryrefslogtreecommitdiff
path: root/modules/codec/c++
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-01-19 16:23:49 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-01-19 16:23:49 +0100
commit2d9cd68ba5f79453487b0f6be4d984a0d556077a (patch)
treef699da7a36806e8aa899881e824af49dd106fd17 /modules/codec/c++
parent45104cfba44c9aead0b14ef831f3eef7893e1931 (diff)
downloadforstio-forstio-2d9cd68ba5f79453487b0f6be4d984a0d556077a.tar.gz
Sycl changes and CT multiply
Diffstat (limited to 'modules/codec/c++')
-rw-r--r--modules/codec/c++/data.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/codec/c++/data.hpp b/modules/codec/c++/data.hpp
index 585501b..a06acdf 100644
--- a/modules/codec/c++/data.hpp
+++ b/modules/codec/c++/data.hpp
@@ -365,6 +365,10 @@ public:
constexpr data<schema::FixedArray<schema::UInt64, sizeof...(D)>> get_dims() const {
return {std::array<uint64_t, sizeof...(D)>{D...}};
}
+
+ constexpr data<schema::UInt64> flat_dims() const {
+ return {ct_multiply<uint64_t, D...>::value};
+ }
private:
constexpr uint64_t get_flat_index(const data<schema::FixedArray<schema::UInt64, sizeof...(D)>>& i) const {
uint64_t s = 0;