diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-03-02 20:00:06 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-03-02 20:00:06 +0100 |
| commit | 94e9b6dac547e956a4514565976d1ea3498b0ec5 (patch) | |
| tree | 52fa1e42479c37ba72c6ffa6361ebf0d547e8a89 /modules/codec/tests | |
| parent | e9624b172bc5946a25847dc71f16f1a684892708 (diff) | |
| download | forstio-forstio-94e9b6dac547e956a4514565976d1ea3498b0ec5.tar.gz | |
Adding 2D rotation with minor testing for compilation
Diffstat (limited to 'modules/codec/tests')
| -rw-r--r-- | modules/codec/tests/math.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/modules/codec/tests/math.cpp b/modules/codec/tests/math.cpp index 6817df1..63b6d2b 100644 --- a/modules/codec/tests/math.cpp +++ b/modules/codec/tests/math.cpp @@ -64,6 +64,20 @@ SAW_TEST("Math/Tensor"){ } } +SAW_TEST("Math/Rotate"){ + using namespace saw; + + data<sch::Vector<sch::Float64, 2u>> a; + { + a.at({{0u}}) = 2.0; + a.at({{1u}}) = 1.0; + } + + data<sch::Scalar<sch::Float64>> b; + b.at({}) = 1.4; + auto c = math::rotate(a,b); +} + SAW_TEST("Math/Dot"){ using namespace saw; |
