diff options
| -rw-r--r-- | modules/codec/c++/data_math.hpp | 2 | ||||
| -rw-r--r-- | modules/codec/tests/math.cpp | 7 |
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; |
