kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit bdc9d6a650cfcca471126fbf52856c24d0a23b54
parent 8aef3e434bd9533b7f6b8eb67be812948632428b
Author: [email protected] <[email protected]>
Date:   Sun, 26 Nov 2023 18:04:53 +0000

More vec tests

Diffstat:
Mtests/unit/simd/vec.cpp | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/tests/unit/simd/vec.cpp b/tests/unit/simd/vec.cpp @@ -229,5 +229,14 @@ TEST(vec_deduction) static_assert(std::is_same_v<decltype(v), vec<int, 3>>); } +TEST(vec2d_element) +{ + auto v = vec{ vec{ 1, 2 }, vec{ 3, 4 } }; + CHECK(v[0][0] == 1); + CHECK(v[0][1] == 2); + CHECK(v[1][0] == 3); + CHECK(v[1][1] == 4); +} + } // namespace CMT_ARCH_NAME } // namespace kfr