diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-08-07 13:56:48 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-08-07 13:56:48 +0200 |
commit | f8fbf83023ad218075d5cbbec5f63fe824bcfee8 (patch) | |
tree | e493b655aa49581a37832557ae48c77b53de3b53 /modules | |
parent | b3cef3181140131dbba8f702b977b9f214537c14 (diff) |
Scalar refers to the dimensionsless Tensor while it doesn't fit the
typeless one
Diffstat (limited to 'modules')
-rw-r--r-- | modules/codec-unit/c++/unit_schema.hpp | 2 | ||||
-rw-r--r-- | modules/codec-unit/tests/codec-unit.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/codec-unit/c++/unit_schema.hpp b/modules/codec-unit/c++/unit_schema.hpp index 9ad173f..5de8770 100644 --- a/modules/codec-unit/c++/unit_schema.hpp +++ b/modules/codec-unit/c++/unit_schema.hpp @@ -11,6 +11,6 @@ template<typename BaseSchema, typename ... Components> struct Unit {}; template<typename BaseSchema> -using Scalar = Unit<BaseSchema>; +using Pure = Unit<BaseSchema>; } } diff --git a/modules/codec-unit/tests/codec-unit.cpp b/modules/codec-unit/tests/codec-unit.cpp index 6ffc4fc..1321316 100644 --- a/modules/codec-unit/tests/codec-unit.cpp +++ b/modules/codec-unit/tests/codec-unit.cpp @@ -59,7 +59,7 @@ SAW_TEST("Codec Unit/Division"){ auto c = a / b; - SAW_EXPECT(c == data<sch::Scalar<sch::Int64>>{5u}, "Expected result 5"); + SAW_EXPECT(c == data<sch::Pure<sch::Int64>>{5u}, "Expected result 5"); } SAW_TEST("Codec Unit/Print"){ |