summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-02-11 16:01:41 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-02-11 16:01:41 +0100
commit6f2555bab2b1ef4287cd9d6f117aeefc88580f7d (patch)
tree4e38d42fae56b844f0e795936677dbf07a3daf00 /modules
parentcc25c5d6439e5b84ff2a1f87686c974a75ef430c (diff)
downloadforstio-forstio-master.tar.gz
Copy behaviour changesHEADmasterdev
Diffstat (limited to 'modules')
-rw-r--r--modules/codec/c++/data_math.hpp2
-rw-r--r--modules/codec/tests/math.cpp7
2 files changed, 9 insertions, 0 deletions
diff --git a/modules/codec/c++/data_math.hpp b/modules/codec/c++/data_math.hpp
index 3c55e37..1a56bd0 100644
--- a/modules/codec/c++/data_math.hpp
+++ b/modules/codec/c++/data_math.hpp
@@ -83,6 +83,8 @@ public:
*/
data() = default;
+ SAW_DEFAULT_COPY(data);
+
data(const data<Inner,encode::Native>& inner_value__) requires (sizeof...(Dims) == 0u):
values_{inner_value__}
{}
diff --git a/modules/codec/tests/math.cpp b/modules/codec/tests/math.cpp
index 25608e2..6817df1 100644
--- a/modules/codec/tests/math.cpp
+++ b/modules/codec/tests/math.cpp
@@ -21,6 +21,13 @@ SAW_TEST("Math/Basic"){
}
*/
+SAW_TEST("Math/Tensor Construction"){
+ using namespace saw;
+
+ // data<sch::Scalar<sch::Float32>> a{{5.1f}};
+ // data<sch::Vector<sch::Int32,3u>> b{{{1,3,5}}};
+}
+
SAW_TEST("Math/Tensor"){
using namespace saw;