summaryrefslogtreecommitdiff
path: root/modules/codec/tests/math.cpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-08-06 14:20:21 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-08-06 14:20:21 +0200
commitf36a545b0f814d8d35e87262dd80d4d8d8dc4405 (patch)
tree828927280b83f6f43eb0b30bc3c99c3d3546511e /modules/codec/tests/math.cpp
parent25ccfc72c5851b2ff59daadad3aeef85b22a6bce (diff)
Extended math setup. Need meta iteration for multi dim array :/
Diffstat (limited to 'modules/codec/tests/math.cpp')
-rw-r--r--modules/codec/tests/math.cpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/modules/codec/tests/math.cpp b/modules/codec/tests/math.cpp
new file mode 100644
index 0000000..4240df5
--- /dev/null
+++ b/modules/codec/tests/math.cpp
@@ -0,0 +1,32 @@
+#include <forstio/test/suite.hpp>
+#include "../c++/data.hpp"
+#include "../c++/data_math.hpp"
+#include "../c++/csv.hpp"
+
+#include <iostream>
+
+namespace {
+namespace sch {
+using namespace saw::schema;
+}
+/*
+SAW_TEST("Math/Basic"){
+ using namespace saw;
+
+ data<sch::Vector<sch::Float64,2u>> a;
+ data<sch::Vector<sch::Float64,2u>> b;
+
+ auto c = a + b;
+}
+*/
+
+SAW_TEST("Math/Tensor"){
+ using namespace saw;
+
+ data<sch::Matrix<sch::Float64,2u,2u> > a;
+
+ data<sch::Matrix<sch::Float64,2u,2u> > b;
+
+ auto c = a + b;
+}
+}